若出现pip install xxx 错误,将安装源换成清华镜像依然错误。
出现了:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pkgs/msys2/noarch/repodata.json.bz2> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on
* Failed to connect to mirrors.tuna.tsinghua.edu.cn port 443: Timed out * Closing connection 0 curl: (7) Failed to connect to mirrors.tuna.tsinghua.edu.cn port 443: Timed out
等错误,而尝试了修改/更新.condarc文件后依然无果,依然连接超时。
则修改镜像源,删除.condarc文件,例如使用中科大的镜像源:
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
即可链接成功
可用conda install numpy进行检验。