安装anaconda后,且管理员账户登录命令行,创建虚拟环境总是报错:

C:\windows\system32>conda create -n tensorbase python=3.7
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'

如下图所示:
在这里插入图片描述
解决办法:
打开windows–开始–Anaconda Powershell Prompt(Anaconda3),如下图:
在这里插入图片描述
执行

conda create -n tensorbase python=3.7

在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐