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
Next revisionBoth sides next revision
pip_notes [2021/06/29 18:50] – [links I came across] adminpip_notes [2022/02/04 19:16] 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
 +
 +==== 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:-
 +  * https://stackoverflow.com/a/61762308/6305733 - response from a pip maintainer.
 +
 ==== upgrade pip ==== ==== upgrade pip ====
 <code> <code>
Line 10: Line 38:
   * Changes to the pip dependency resolver in 20.3 - https://pip.pypa.io/en/stable/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020   * Changes to the pip dependency resolver in 20.3 - https://pip.pypa.io/en/stable/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020
   * https://pip.pypa.io/en/stable/news/ - pip changelog   * https://pip.pypa.io/en/stable/news/ - pip changelog
 +
pip_notes.txt · Last modified: 2023/04/28 15:44 by raju