Home > Net >  How handle pip and pip cache in windows?
How handle pip and pip cache in windows?

Time:04-13

I'm stuck in pip installation process..

1.how can ignore pip cache

2.how can remove all packages for pip

3.can pip/cache folder deletion is safe

CodePudding user response:

  1. remove all packages

    pip freeze | xargs pip uninstall -y

  2. install any packages without pip cache

    pip --no-cache-dir install -r requirements.txt

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

    pip cache remove matplotlib

  4. to clear all wheel files from pip's cache.

    pip cache purge

  5. configure pip to not use the cache "globally" (in all commands).

    pip config set global.no-cache-dir false

CodePudding user response:

If you want to delete cache folder the open command prompt ,in this path.

C:\Users\USER NAME\AppData\Local\pip.

del /f /s /q cache > NUL

  • Related