• 创建环境时提示:ERROR conda.core.link:_execute(502)


    创建环境时提示:ERROR conda.core.link:_execute(502)

    创建环境最后Executing transaction,失败,提示如下:

    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: failed
    ERROR conda.core.link:_execute(502): An error occurred while installing package 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge::setuptools-65.5.1-pyhd8ed1ab_0'.
    FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
    Attempting to roll back.
    
    Rolling back transaction: done
    
    FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10

    配置环境通道时:

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
    
    • 1
    • 2
    • 3

    报错提示中conda-forge 编译失败。
    删除conda-forge源,增加两个源配置:

    conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
    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/
    
    • 1
    • 2
    • 3

    再次创建环境:

    Downloading and Extracting Packages
    wheel-0.38.4         | 77 KB     | ############################################################################ | 100%
    sqlite-3.41.2        | 1.3 MB    | ############################################################################ | 100%
    python-3.8.13        | 19.8 MB   | ############################################################################ | 100%
    vs2015_runtime-14.27 | 2.2 MB    | ############################################################################ | 100%
    pip-23.2.1           | 2.8 MB    | ############################################################################ | 100%
    openssl-1.1.1w       | 5.8 MB    | ############################################################################ | 100%
    setuptools-68.0.0    | 1.0 MB    | ############################################################################ | 100%
    vc-14.2              | 8 KB      | ############################################################################ | 100%
    ca-certificates-2023 | 161 KB    | ############################################################################ | 100%
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    #
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14

    Executing transaction 成功!

  • 相关阅读:
    Java实现从Redis中批量读取数据
    【适用于电力系统和音频系统】计算信号的总谐波失真 (THD)(Matlab代码实现)
    Unity架构之场景重新加载
    logrotate日志轮转
    七天学会C语言-第二天(数据结构)
    真假难辨!AI人像生成再进化!HyperHuman:基于隐式结构扩散的超逼真人像生成...
    进化算法------代码示例
    Linux编程——经典链表list_head
    区块链的风潮
    vue中web端播放rtsp视频流(摄像头监控视频)(海康威视录像机)
  • 原文地址:https://blog.csdn.net/qq_39065491/article/details/132845840