C:\Users\JamesHarden>conda update python Collecting package metadata (current_repodata.json): failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team. 'https://repo.anaconda.com/pkgs/main/win-64'
该错误消息表明尝试从 Anaconda 存储库检索包元数据时出现 HTTP 错误。此错误表明存在网络问题、连接问题,或者可能是 Anaconda 存储库暂时不可用。
1、首先查看网络上的问题,确保您的互联网连接稳定并且不会阻止对 Anaconda 存储库的访问。如果您位于公司网络上,请确保没有网络限制或防火墙阻止访问 Anaconda 存储库。关掉之后如果还不行,看一下自己有没有连接VPN,连着VPN的话也是不行的
2、重试命令:正如错误消息中所建议的,HTTP 错误通常是间歇性的。您可以尝试再次运行相同的命令:
conda update python
出现这样的界面就是更新好了。
3、也可以尝试不同的镜像:Anaconda 为包分发提供了多个镜像。您可以尝试切换到不同的镜像,看看是否能解决问题。要切换到不同的镜像,您可以.condarc
在主目录中创建或修改包含以下内容的文件:
channels:
- defaults
channel_priority: strict
ssl_verify: true
这个方法我没有试过,理论上是可行的。
这样子的话这个报错的问题就解决了,希望能对大家碰到的问题有帮助。