Views:
5,930β
Votes: 3β
β
Solution
Tags:
apt
package-management
software-installation
updates
python
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1081040
Title:
How to determine which python modules were installed with `pip` and which with `apt`?
ID:
/2018/10/05/How-to-determine-which-python-modules-were-installed-with-_pip_-and-which-with-_apt__
Created:
October 5, 2018
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Not cast in stone but from this Ask Ubuntu Q&A:
As @Radu RΔdeanu pointed out in this answer, there would generally be
difference in names of packages as well. Canonical usually names
Python 2 packages as python-and Python 3 packages as python3- . Whereas for pip we generally just need to use for both Python 2 as well as Python3 packages.
Generally speaking then:
- If the package name starts with
python-
orpython3-
it was installed byapt
. -
Otherwise the package was installed by
pip