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

标签 python configuration pip

这是我在 /etc/pip.conf 中尝试设置的内容:

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

但是,它无法正常工作。

引用文献:

另请参阅:pip.conf not paying attention to trusted-host

最佳答案

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

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

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

关于python - 在 pip.conf 中指定多个可信主机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59287824/

相关文章:

python - 查找单词中字符替换的每个排列

python - 更改字符串列表中的字符串

python - 使用 TraitsUI 的带有列表的可滚动组

java - 使用 Log4j 创建每日日志?

php - 确定脚本所在的服务器以及 PHP 中的配置的最佳方法是什么?

python - 使用 Pandas 读取csv文件时如何选择多行?

hadoop hbase cdh4 作业启动失败,出现权限错误

python-2.7 - 为什么 "-m"需要 "python -m pip install ..."?

python - setup_requires 仅适用于某些命令

python - "python setup.py install"没有在 virtualenv 中安装