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

相关推荐
马优晨2 天前
Pip 和 Conda 是什么关系?
conda·pip·pip 和 conda 关系·conda和pip的关系·pip和conda是什么
yuanpan2 天前
Python 与 Conda 编程实战指南:从环境配置到项目运行完整入门
开发语言·python·conda
其实防守也摸鱼3 天前
VS code怎么使用 Conda 安装预编译包
开发语言·网络·c++·vscode·安全·web安全·conda
独隅3 天前
Anaconda、Miniconda 与 Conda 全面对比:核心差异、适用场景与选型指南
conda
独隅3 天前
Anaconda 与 Conda 全面对比:核心差异、适用场景与选型指南
conda
Robot_Nav3 天前
Python 虚拟环境完全指南:venv、virtualenv 与 Conda
python·conda·virtualenv
独隅3 天前
Conda 与 Miniconda 全面对比:核心差异、适用场景与选型指南
conda
学习是种信仰4 天前
复现conda环境及Python 项目路径(PYTHONPATH)问题——基于Ubuntu
python·ubuntu·conda
_ 川三西7 天前
Anaconda安装后环境变量的添加
vscode·conda
QFIUNE9 天前
CD-HIT 详解:序列去冗余、安装使用与聚类结果解析
linux·服务器·机器学习·数据挖掘·conda·聚类