如何在Windows中处理pip和pip缓存?
我陷入了 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
删除所有包
pip 冻结 | xargs pip uninstall -y
安装任何没有 pip 缓存的软件包
pip --no-cache-dir install -r requests.txt
从 pip 的缓存中删除与 matplotlib 相关的所有轮子文件
pip 缓存删除 matplotlib
从 pip 的缓存中清除所有轮文件。
pip 缓存清除
将 pip 配置为不“全局”(在所有命令中)使用缓存。
pip 配置设置 global.no-cache-dir false
remove all packages
pip freeze | xargs pip uninstall -y
install any packages without pip cache
pip --no-cache-dir install -r requirements.txt
removes all wheel files related to matplotlib from pip's cache
pip cache remove matplotlib
to clear all wheel files from pip's cache.
pip cache purge
configure pip to not use the cache "globally" (in all commands).
pip config set global.no-cache-dir false