Create setup.cfg in the same folder as your setup.py with following content:[easy_install]allow_hosts = *.myintranet.example.com来自:http://pythonhosted.org/setuptools/easy_install.html#restricting-downloads-with-allow-hosts您可以使用 --allow-hosts (-H) 选项来限制 EasyInstall 将在哪些域上查找链接和下载. You can use the --allow-hosts (-H) option to restrict what domains EasyInstall will look for links and downloads on.--allow-hosts=None 完全阻止下载. 这篇关于setup.py 不尊重 PIP_INDEX_URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-13 13:14