创建环境时提示: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)

配置环境通道时:

复制代码
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/

报错提示中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/

再次创建环境:

复制代码
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
#

Executing transaction 成功!

相关推荐
liang89991 天前
Anconda常用命令
linux·人工智能·conda
齐昭王城2 天前
Conda 环境一键搬家:用 conda-pack 打包带走,连网都不用
conda
HAPPY酷6 天前
【ROS2】 Conda 环境搭建(命令行版)
linux·运维·python·ubuntu·机器人·conda
Dxy12393102167 天前
如何使用Conda国内源安装虚拟环境(保姆级全平台教程)
conda
码上暴富7 天前
Conda从入门到精通的环境管理实战
conda
xin_yao_xin7 天前
Conda 环境的 CUDA PATH 配置指南
开发语言·python·conda·cuda
砍材农夫1 个月前
python环境|conda安装和使用(1)
开发语言·后端·python·conda
匆匆整棹还1 个月前
mamba的安装和版本对应
conda
2601_961875241 个月前
花生十三资料1200题|题库|刷题
conda·pytest·pillow·pip·web3.py·ipython·gunicorn
没有钱的钱仔1 个月前
自动创建conda虚拟环境,并安装依赖包
conda