如何在Windows中处理pip和pip缓存?

发布于 2025-01-20 16:58:48 字数 98 浏览 3 评论 0原文

我陷入了 pip 安装过程..

1.如何忽略 pip 缓存

2.如何删除 pip 的所有包

3.可以安全地删除 pip/cache 文件夹

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

書生途 2025-01-27 16:58:48
  1. 删除所有包

    pip 冻结 | xargs pip uninstall -y

  2. 安装任何没有 pip 缓存的软件包

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

  3. 从 pip 的缓存中删除与 matplotlib 相关的所有轮子文件

    pip 缓存删除 matplotlib

  4. 从 pip 的缓存中清除所有轮文件。

    pip 缓存清除

  5. 将 pip 配置为不“全局”(在所有命令中)使用缓存。

    pip 配置设置 global.no-cache-dir false

  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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文