

If you run pip uninstall Jinja2 or whatever, for any of the pip packages installed by the apt packages, you will break those apt packages, and therefore fuck your system up. They are dependencies of other apt packages you installed manually, or maybe even which came with your OS.

These apt packages actually install pip packages on your global environment.

If you run apt list -i, you'll see stuff like python3-pyasn1, python3-yaml, python3-jinja2, python3-asn1crypto, etc. Use virtualenvs all the time and just ignore the global environment.Ī lot of the global pip packages are actually installed by apt. It you want to be safe, just leave the packages alone. Not uninstalling blinker at /usr/lib/python3/dist-packages, outside environment /usrĬan't uninstall 'blinker'.

Not uninstalling apturl at /usr/lib/python3/dist-packages, outside environment /usrĬan't uninstall 'apturl'. No files were found to uninstall.įound existing installation: apturl 0.5.2 Not uninstalling appdirs at /usr/lib/python3/dist-packages, outside environment /usrĬan't uninstall 'appdirs'. Should I uninstall pip? What am I missing?ī/w, when trying to run pip3 uninstall -r reqs.txt -y I get errors like this:įound existing installation: appdirs 1.4.3 I have tried to use -no-site-packages, but later found out that this flag isn't working anymore. Now, every time I create a new virtual environment, all these packages are already there. Although my intension was to make a virtual environment for every project, I somehow forgot to activate one before installing a bunch of packages. I have recently installed Python on my new computer.
