» pip
Remove all packages to get a somewhat clean system (e.g. when you forgot to use a virtual environment, like I did…):
| |
or without creating a requirements.txt.
| |
Credits to Giorgos Myrianthous
» venv
Create a virtual environment:
| |
Activate the environment:
| |
Just normally install packages in the virtual environment:
| |
Deactivate the environment:
| |
- Credits to Matthew Sarmiento
- Docs