User Tools

Site Tools


pip_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pip_notes [2021/09/10 19:01] – [upgrade pip] adminpip_notes [2023/04/28 15:44] (current) – [install a specific version of a package] raju
Line 1: Line 1:
 +==== install a package ====
 +<code>
 +pip install --ignore-installed PyYAML
 +</code>
 +
 +Ref:- https://stackoverflow.com/questions/53807511/pip-cannot-uninstall-package-it-is-a-distutils-installed-project
 +
 +==== install a specific version of a package ====
 +<code>
 +pip install <package>==<version>
 +</code>
 +For example
 +<code>
 +pip install pandas==1.5.3
 +</code>
 +
 +==== reinstall an existing package ====
 +<code>
 +pip install --upgrade --force-reinstall <package>
 +</code>
 +
 +  * https://stackoverflow.com/questions/51913361/difference-between-pip-install-options-ignore-installed-and-force-reinstall - explains the difference between --force-reinstall and --ignore-installed
 ==== pip cache ==== ==== pip cache ====
 install a package without using the cache, just for this run. install a package without using the cache, just for this run.
pip_notes.1631300489.txt.gz · Last modified: 2021/09/10 19:01 by admin