Easy_install cache downloaded files

前端 未结 2 543
灰色年华
灰色年华 2020-12-01 09:28

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

2条回答
  •  天涯浪人
    2020-12-01 10:00

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

    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).

    Then use pip install instead of easy_install

提交回复
热议问题