- Python Automation Cookbook
- Jaime Buelta
- 72字
- 2025-04-04 16:17:46
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.