嘿,我正在尝试requires
从新虚拟环境(2.7.4)上的文件中安装一些软件包,但我一直遇到以下错误:
CertificateError: hostname 'pypi.python.org' doesn't match either of '*.addvocate.com', 'addvocate.com'
搜索时,我似乎找不到任何对错误有帮助的东西。这里出了什么问题?到底是谁,addvocate.com
他们在这里做什么?
嘿,我正在尝试requires
从新虚拟环境(2.7.4)上的文件中安装一些软件包,但我一直遇到以下错误:
CertificateError: hostname 'pypi.python.org' doesn't match either of '*.addvocate.com', 'addvocate.com'
搜索时,我似乎找不到任何对错误有帮助的东西。这里出了什么问题?到底是谁,addvocate.com
他们在这里做什么?
该问题记录在 python 状态站点http://status.python.org/incidents/jj8d7xn41hr5
当我尝试连接到 pypi 时,出现以下错误:
pypi.python.org uses an invalid security certificate.
The certificate is only valid for the following names:
*.addvocate.com , addvocate.com
所以要么 pypi 使用了错误的 ssl 证书,要么我的连接被路由到了错误的服务器。
与此同时,我已经求助于直接从源 URL 下载。请参阅http://www.pip-installer.org/en/latest/usage.html#pip-install
我有同样的错误,我通过将我的 pip 版本降级到 1.2.1 来修复它:
easy_install pip==1.2.1
更改您的 DNS 设置现在应该可以解决它。
对于我的 Ubuntu 12.04 Amazon AWS 实例,我执行了以下操作:
sudo pico /etc/dhcp/dhclient.conf
supersede domain-name-servers 8.8.8.8, 8.8.4.4;
保存文件,几秒钟后就好了。