简体   繁体   中英

Why do Ubuntu system packages show up with pip freeze/how do I clean up pip freeze?

I accidentally installed jupyter and all its dependent packages outside of venv. I'm trying to delete them all by hand, but there are a lot of other packages too ( command-not-found , systemd-python , ubuntu-drivers-common , python-debian ) that I'm not sure I can delete. Yet they show up at pip freeze. How I can clean it up? I wanna work with packages in venvs only.

Running

pip freeze --local

will return only packages installed inside venv.

Don't try to remove the packages you listed, removing them might break you OS installation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM