🔍 See Original Answer on Ask Ubuntu 🔗
How to determine which python modules were installed with `pip` and which with `apt`?
October 5, 2018
November 24, 2022
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
python3-it was installed by
Otherwise the package was installed by