pip_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pip_notes [2021/06/15 15:01] – admin | pip_notes [2023/04/28 15:44] (current) – [install a specific version of a package] raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== install a package ==== | ||
+ | < | ||
+ | pip install --ignore-installed PyYAML | ||
+ | </ | ||
+ | |||
+ | Ref:- https:// | ||
+ | |||
+ | ==== install a specific version of a package ==== | ||
+ | < | ||
+ | pip install < | ||
+ | </ | ||
+ | For example | ||
+ | < | ||
+ | pip install pandas==1.5.3 | ||
+ | </ | ||
+ | |||
+ | ==== reinstall an existing package ==== | ||
+ | < | ||
+ | pip install --upgrade --force-reinstall < | ||
+ | </ | ||
+ | |||
+ | * https:// | ||
+ | ==== pip cache ==== | ||
+ | install a package without using the cache, just for this run. | ||
+ | pip install --no-cache-dir < | ||
+ | |||
+ | configure pip to not use the cache " | ||
+ | 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: | ||
+ | |||
+ | Ref:- | ||
+ | * https:// | ||
+ | |||
==== upgrade pip ==== | ==== upgrade pip ==== | ||
< | < | ||
Line 5: | Line 48: | ||
==== links I came across ==== | ==== links I came across ==== | ||
+ | * https:// | ||
+ | * Easy to understand, well written. | ||
+ | * found it in https:// | ||
* Changes to the pip dependency resolver in 20.3 - https:// | * Changes to the pip dependency resolver in 20.3 - https:// | ||
+ | * https:// | ||
pip_notes.1623769280.txt.gz · Last modified: 2021/06/15 15:01 by admin