如何解决WSL2 (Ubuntu 20.04) 上的 Miniconda 因 CondaHTTPError: HTTP 000 CONNECTION FAILED 而失败
我在使用 Ubuntu 的 WSL2 上,想安装 Miniconda 4.9.2 版。
安装毫不费力,但我现在无法连接到 anaconda 来安装软件包。像 conda update conda
这样的简单命令也失败了
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/linux-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/linux-64'
您会找到许多针对此主题的解决方案——适用于纯 Windows!像 here,但我找不到适用于 Ubuntu 或 WSL2 中的 Ubuntu 的解决方案。
正如上面的解决方案所建议的那样,在 Windows-dll 之间移动对我来说并没有什么意义。无论如何,我尝试将类似的声音文件复制到类似的声音文件夹中,但这并没有奏效。
即使是打开加密的“技巧”也不起作用。看来真的是个很严重的问题。有什么建议么?谢谢。
解决方法
根据此链接: https://github.com/conda/conda/issues/9948#issuecomment-771901234
请尝试手动安装4.7.12.1以下的版本:
wget https://repo.anaconda.com/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.sh
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。