Jun-01-2022, 06:49 AM
many packages install others that are needed dependencies, so they tend to add up. Especially if virtual environments are not used. I always create a separate virtual environment for each project and include a requirements.text file which I update every time I add a new package (
After new python install, use
pip freeze > requirements.txt
). This tends to keep the repository slim, and is a great help if a new python is installed (I use pyenv (see snippsats video: ) to bring the environment up to date.After new python install, use
pip install -r requirements.txt
.