这是我在 /etc/pip.conf
中尝试设置的内容:
[global]
trusted-host = pypi.org, files.pythonhosted.org
但是,它无法正常工作。
引用文献:
最佳答案
以空格分隔,而不是逗号分隔:
[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/