在 pip.conf 中指定多个可信主机

新手上路,请多包涵
阅读 922
2 个回答

空格分隔,而不是逗号分隔:

 [global]
trusted-host = pypi.org files.pythonhosted.org

或者

[global]
trusted-host = pypi.org
               files.pythonhosted.org

原文由 phd 发布,翻译遵循 CC BY-SA 4.0 许可协议

从命令行执行 python -m pip config set global.trusted-host=pypi.org files.pythonhosted.org

原文由 Dave Edwards 发布,翻译遵循 CC BY-SA 4.0 许可协议

推荐问题