Skip to content

Instantly share code, notes, and snippets.

@steinerkelvin
Last active June 17, 2022 14:07
Show Gist options
  • Save steinerkelvin/bbf9771e7d0d9ae55a560837b68cedb8 to your computer and use it in GitHub Desktop.
Save steinerkelvin/bbf9771e7d0d9ae55a560837b68cedb8 to your computer and use it in GitHub Desktop.
Python's pip requirements management ala Node.js / npm / yarn
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip freeze > requirements_lock.txt
pip install -r requirements_dev.txt

requirements.txt

requests>=2.25.1
PyYAML>=5.4.1

requirements_dev.txt

-r requirements.txt
pylint
rope

requirements_lock.txt

certifi==2020.12.5
chardet==4.0.0
idna==2.10
PyYAML==5.4.1
requests==2.25.1
urllib3==1.26.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment