使用conda create -n python36 python=3.6方法创建新环境,出现报错,解决方法

使用conda create -n python36 python=3.6创建python3.6的环境时,出现以下报错:
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’

网上指出出现这种情况的原因很多,这里提供其中一种错误原因,此时使用的conda存在于anaconda中,查看anaconda添加的环境变量是否加全

将D:\anaconda\anaconda3\Library\bin添加至环境变量中,重新打开命令行创建成功。

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
青葱年少的头像青葱年少普通用户
上一篇 2023年5月20日
下一篇 2023年5月20日

相关推荐