Last active
February 17, 2024 14:09
-
-
Save hans-min/a11407c2fa803672f483a575b6a5313d to your computer and use it in GitHub Desktop.
pip install with requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip freeze > requirements.txt | |
pip install -r requirements.txt | |
###### Requirements without Version Specifiers ###### | |
nose | |
###### Requirements with Version Specifiers ###### | |
docopt == 0.6.1 # Version Matching. Must be version 0.6.1 | |
keyring >= 4.1.1 # Minimum version 4.1.1 | |
coverage != 3.5 # Version Exclusion. Anything except version 3.5 | |
Mopidy-Dirble ~= 1.1 # Compatible release. Same as >= 1.1, == 1.* | |
pip uninstall -r requirements.txt -y | |
pip check #check for broken dependencies | |
python -m pip cache purge #remove all cached install | |
#https://stackoverflow.com/questions/11248073/how-do-i-remove-all-packages-installed-by-pip?page=1&tab=modifieddesc#tab-top | |
pip freeze > unins ; pip uninstall -y -r unins ; del unins #remove all packages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment