上QQ阅读APP看书,第一时间看更新
How it works...
The requirements.txt file specifies the module and version, and pip performs a search on pypi.org.
Note that creating a new virtual environment from scratch and running the following will completely recreate your environment, which makes replicability very straightforward:
$ pip install -r requirements.txt
Note that step 2 of the How to do it... section automatically installs other modules that are dependencies, such as urllib3.