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

相关推荐
起个名好难000011 小时前
conda 常用指令
conda
Mark White11 小时前
把大象塞进冰箱总共分几步:讲讲dockerfile里conda的移植
conda
巴里巴气11 小时前
2025.1版本PyCharam找不到已存在的conda虚拟环境
pycharm·conda
互联网搬砖老肖1 天前
Python 中如何使用 Conda 管理版本和创建 Django 项目
python·django·conda
茫茫人海一粒沙11 天前
Python 包管理新选择:全面了解 uv(附 Conda 对比)
python·conda·uv
Sim time13 天前
用AI从0开始量化交易-Anaconda环境(env)和缓存(pkg)更改储存位置
人工智能·python·conda
追光天使13 天前
CondaError: Run ‘conda init‘ before ‘conda activate
conda
l1o3v1e4ding13 天前
conda(Anaconda/Miniconda)常用命令
conda
从零开始学习人工智能14 天前
如何导出和迁移离线 Conda 环境
linux·服务器·conda
微信公众号:AI创造财富14 天前
Pyenv 跟 Conda 还有 Poetry 有什么区别?各有什么不同?
人工智能·python·conda·tensorflow