LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-21-2021, 02:25 AM   #1
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Python module versions out of sync


With the changing of Python versions recently my versions as root user seem to be out of sync. If I run

Code:
pip3 list -o
I see

Code:
Package          Version Latest      Type
---------------- ------- ----------- -----
cassandra-driver 3.24.0  3.25.0      sdist
Cheetah3         3.2.6   3.2.6.post1 wheel
coloredlogs      15.0    15.0.1      wheel
cvdupdate        0.2.0   1.0.2       wheel
decorator        5.0.7   5.1.0       wheel
docker           4.3.1   5.0.3       wheel
Glances          3.2.4   3.2.4.1     wheel
humanfriendly    9.1     10.0        wheel
influxdb         5.3.0   5.3.1       wheel
MarkupSafe       1.1.1   2.0.1       wheel
msgpack          0.6.1   1.0.2       wheel
netifaces        0.10.9  0.11.0      wheel
pika             1.1.0   1.2.0       wheel
protonvpn-cli    2.2.7   2.2.11      wheel
psutil           5.7.3   5.8.0       wheel
py-cpuinfo       7.0.0   8.0.0       sdist
PyQt5_sip        4.19.25 12.9.0      wheel
python-dateutil  2.8.1   2.8.2       wheel
pythondialog     3.5.1   3.5.2       wheel
pytz             2020.4  2021.3      wheel
pyzmq            19.0.2  22.3.0      wheel
style            1.1.0   1.1.6       wheel
wheel            0.33.0  0.37.0      wheel
However I looked in

~/.local/lib/python3.9/site-packages# and all of the package versions listed above are the latest versions and not the older versions seemingly requiring an update. I've been trying to find where "pip3 list -o" is picking up these seemingly older versions when in fact they don't exist. I've searched the entire /root and didn't find anything listing these older versions. Any ideas??

Last edited by 3rensho; 11-21-2021 at 02:26 AM.
 
Old 11-21-2021, 04:59 AM   #2
giomat
Member
 
Registered: Jul 2017
Posts: 339

Rep: Reputation: 239Reputation: 239Reputation: 239
how did you install these packages? did you use pip or slackbuilds?
 
Old 11-21-2021, 05:53 AM   #3
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
Originally Posted by giomat View Post
how did you install these packages? did you use pip or slackbuilds?
I used pip for the installs
 
Old 11-22-2021, 03:36 AM   #4
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
OK found out where the older versions are being picked up. They are in /usr/lib64/python3.9/site-packages. So for the root user I have up to date packages in ~/.local/lib/python3.9/site-packages and I am at a loss to know how some of these older packages got into /usr/lib64/python3.9/site-packages. They aren't included in the newest Python-3.9 package from Slackware, there is no Slackbuild for python-humanfriendly for instance. I guess as a cluge I could copy the up to date packages from ~/.local/lib/python3.9/site-packages to the /usr/lib64 area/... Will do some more playing to get things synced but I answered my original question so will leaved this as solved.
 
Old 11-22-2021, 06:29 AM   #5
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Presumably you installed some python packages as root using pip without the --user option, so they didn't go in root's home directory, possibly combined with the --upgrade option.

Each to their own, but I would never install packages in root's home directory to begin with. Why not install in /usr/lib64/python3.9/site-packages in the normal way, preferably as a slackware package? (The '--root=/tmp/my-package' option for 'pip install' can help when making up slackware packages, although I accept that that's less useful when you want pip to install dependencies automatically for you.)

Last edited by chrisVV; 11-22-2021 at 06:44 AM.
 
Old 11-22-2021, 07:02 AM   #6
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Thanks for the note. Quite possibly what I did in the distant past. Live and (hopefully) learn.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to find new versions of Python after installing Python roll dyson ROCK 4 05-19-2016 10:06 AM
[SOLVED] Gentoo: all mirrors out-of-sync? (e.g. dist files not found after "emerge --sync") Pearlseattle Gentoo 1 09-25-2014 01:49 PM
RAID1: Urgent.. Two disks out of sync... how to get them back in sync? tkalfaoglu Linux - Server 1 10-18-2013 03:42 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
help : kernel module and nvidia driver components out-of-sync maxreason Fedora 3 02-13-2008 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration