I recently upgraded a machine from Ubuntu Server 16.04 LTS to 18.04 LTS using command line. As a result, the built-in Python installation is upgraded from Python 3.5 to 3.6. And it seems that all the Python packages previously installed using pip3
are no longer accessible. I plan to clean up all those packages and use conda
for Python package management. My question is, what is the best practice for a clean uninstallation of those inaccessible packages in this case?
The old packages installed via pip3
were primarily located under /usr/local/lib/python3.5/
and ~/.local/lib/python3.5/
. But there could be other leftover files, e.g., under /usr/local/bin/
. I would like to remove all of related files that came with pip3 install
.