User Tools

Site Tools


pip_notes

install a package

install a specific version of a package

pip install <package>==<version>

For example

pip install pandas==1.5.3

reinstall an existing package

pip install --upgrade --force-reinstall <package>

pip cache

install a package without using the cache, just for this run.

pip install --no-cache-dir <package>

configure pip to not use the cache “globally” (in all commands)

pip config set global.cache-dir false

remove all wheel files related to matplotlib from pip's cache.

pip cache remove matplotlib

clear all files from pip's cache.

pip cache purge

pip cache directory

pip cache dir

Availability: {'pip cache': 'pip >= 20.1', 'pip config': 'pip >= 10.0', '–no-cache-dir': 'pip >= 6.0'}

Ref:-

upgrade pip

python -m pip install --upgrade pip
pip_notes.txt · Last modified: 2023/04/28 15:44 by raju