-2

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

1 Answers1

2
  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

S.B
  • 13,077
  • 10
  • 22
  • 49