在conda里conda install xxxx报错如下:
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.aliyun.com/pypi/simple/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.
'https://mirrors.aliyun.com/pypi/simple/win-64'
(torch_gpu) C:\Users\25894>conda install matplotlib
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.aliyun.com/pypi/simple/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.
'https://mirrors.aliyun.com/pypi/simple/win-64'
一开始以为是网速问题,但是切换网络、添加镜像源、换镜像源都不行
把conda命令换成了pip就安装成功了,原因不知道。