Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 2292  / 1 Year ago, thu, april 27, 2023, 7:32:35

I recently upgraded all python data analysis tools using pip. When I do



dpkg -l |grep python


I see the old version numbers of the software I just upgraded via pip.



How can I ensure that the dpkg list reports the correct versions?
(I assume dpkg -l needs to be correct)



For example, I upgraded ipython to version 1.0.0 using pip; however, dpkg reports version 0.13.2-1~ubuntu12.04.1


More From » upgrade

 Answers
2

It is not the same if you use dpkg instead of pip. The first is a package manager for Debian based systems and provides means to handle packages and install packages from the repositories made by package teams. PIP handles Python only packages and installs them from the cheese shop PyPI.



The two methods differ to the versions which they install with PIP always installing the newest package version.



One method to list all installed packages is to install and use yolk: sudo pip install yolk and then issue yolk -l to list all packages.



Other methods are mentioned at the following SE question:





Also these two questions talk about the difference of apt-get - pip for installing Python packages:




[#29888] Friday, April 28, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
admin

Total Points: 459
Total Questions: 112
Total Answers: 109

Location: Equatorial Guinea
Member since Sun, Feb 14, 2021
3 Years ago
;