Python | Cookbook
Inhaltsverzeichnis
Pip
List all available versions of a package | pip install --use-deprecated=legacy-resolver <module>== |
wget -q https://pypi.org/pypi/PyJWT/json -O - | python -m json.tool - |
Show Pip Configuration
pip config list
Set Pip Cache Folder
pip config set global.cache-dir D:\Temp\Pip\Cache
Location of packages
pip show <module>
Installation
Update all Python Packages with Powershell
pip freeze |Update Packages
requirements.txt
aktualisieren und alle Versionsnummern als Minimalversionnummer setzensed -i '' 's/==/>=/g' requirements.txt pip install -U -r requirements.txt pip freeze > requirements.txtpip install --upgrade --force-reinstall -r requirements.txtpip install --ignore-installed -r requirements.txt
Leave a Reply