卧式纯绿 2025-02-20 11:09 采纳率: 62.1%
浏览 24

conda创建虚拟环境出错

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'

  • 写回答

3条回答 默认 最新

  • 阿里嘎多学长 2025-02-20 11:09
    关注

    阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程

    conda创建虚拟环境出错

    你遇到的问题是 conda 创建虚拟环境时出错,错误信息是 Collecting package metadata (current_repodata.json): failed,并且报错信息中包含 CondaHTTPE

    解决方案:

    1. 检查网络连接是否正常,确保 conda 可以访问网络。
    2. 试试使用 conda config --set ssl_verify false 命令来禁用 SSL 验证。
    3. 如果上述方法不行,可以尝试删除 ~/.conda/repo 目录下的所有文件,然后重新运行 conda create 命令。
    4. 如果你使用的是 Anaconda,尝试使用 anaconda-navigator 创建虚拟环境。

    如果以上方法都不能解决问题,请提供更多的错误信息和环境配置信息,以便更好地帮助你解决问题。

    评论

报告相同问题?

问题事件

  • 创建了问题 2月20日