this post was submitted on 08 Jul 2023
19 points (100.0% liked)

Python

6381 readers
164 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

You should be able to use pip uninstall. See this link for details:https://pip.pypa.io/en/stable/cli/pip_uninstall/

Using it in a venv will affect the venv. Using it outside the venv will affect global packages.

[–] G0FuckThyself 3 points 1 year ago (1 children)

I know i can use pip to uninstall packages, the problem is I don't know which package is needed and which is not needed. I wish pip was like pacman or apt which can list orphan packages.

[–] coffeewithalex 3 points 1 year ago

Sounds like you need poetry.

Or at least to track your dependencies, so that you can recreate your virtual environment.