Why does pip install requirements.txt install extra packages?
问题 I have a repository with an inflated requirements.tx that I'd like to clean up. Using pipreqs I've set my requirements.txt to be a minimal set of packages need for my repository. To test this, I setup a virtualenv to install the packages and then run all my unit tests to make sure they're satisfactory. virtualenv temp_venv --no-site-packages source temp_venv/bin/activate pip install -r requirements.txt Which runs fine, but I see that a whole bunch of extra packages are collected and installed