Easy_install 缓存下载的文件 [英] Easy_install cache downloaded files

查看:58
本文介绍了Easy_install 缓存下载的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法配置easy_install以避免在安装失败时再次下载文件?

Is there a way to configure easy_install to avoid having to download the files again when an installation fails?

推荐答案

pip (http://pypi.python.org/pypi/pip/) 是 easy_install 工具的直接替代品,可以做到这一点.

pip (http://pypi.python.org/pypi/pip/) is a drop-in replacement for the easy_install tool and can do that.

只需运行 easy_install pip 并将环境变量 PIP_DOWNLOAD_CACHE 设置为您希望 pip 存储文件的路径.请注意,缓存不适用于从源代码存储库(如 svn/git/hg/bzr)检出的依赖项.

Just run easy_install pip and set an environment variable PIP_DOWNLOAD_CACHE to the path you want pip to store the files. Note that the cache won't work with dependencies that checkout from a source code repository (like svn/git/hg/bzr).

然后使用 pip install 而不是 easy_install

这篇关于Easy_install 缓存下载的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆