利用miniconda安装python3.9的环境时,报错如下:
本地可以打开报错的网站,即 https://repo.anaconda.com/pkgs/main/win-64/current_repodata.jsonchttps://repo.anaconda.com/pkgs/main/win-64/current_repodata.json
尝试了各种方法, 包括,
1.【不能解决】更换清华源。 参考:【conda】解决 An HTTP error occurred when trying to retrieve this URL.问题 - CodeAntenna
# 重置源配置 conda config --remove-key channels # 重新添加清华源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ conda config --set show_channel_urls yes
2. 【不能解决】设置ssl_verify = false
3. 【解决】将如下两个dll文件copy到C:\Users\%YourUser%\Miniconda3\DLLs
C:\Users\meiranp\Miniconda3\Library\bin\libcrypto-1_1-x64.dll
C:\Users\meiranp\Miniconda3\Library\bin\libssl-1_1-x64.dll
参考:CondaHTTPError: HTTP 000 CONNECTION FAILED for url < https://conda.anaconda.org/a naconda/win-64/repodata.json