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

相关推荐
我不是小upper3 天前
anaconda、conda、pip、pytorch、torch、tensorflow到底是什么?它们之间有何联系与区别?
人工智能·pytorch·深度学习·conda·tensorflow·pip
MobiCetus3 天前
确保conda环境内的Py不会污染系统
chrome·python·conda
冰镇西瓜4 天前
windows本地使用conda部署Open-webui
windows·ai·conda
SiYuanFeng4 天前
【问题未解决-寻求帮助】VS Code 中使用 Conda 环境,运行 Python 后 PowerShell 终端输出内容立即消失
开发语言·python·conda
码界筑梦坊5 天前
169-Django二手交易校园购物系统开发分享
后端·python·django·毕业设计·conda
scx_link6 天前
conda和pip安装包时的注意细节,以及下载慢时如何配置镜像地址
conda·pip
修一呀6 天前
【数据标注】详解使用 Labelimg 进行数据标注的 Conda 环境搭建与操作流程
人工智能·conda
pingzhuyan6 天前
python入门篇12-虚拟环境conda的安装与使用
python·ai·llm·ocr·conda
抠头专注python环境配置6 天前
Anaconda创建环境报错:CondaHTTPEFTOT: HTTP 403 FORBIDDEN for url
python·conda
love530love6 天前
Windows 11 下 Anaconda 命令修复指南及常见问题解决
运维·ide·人工智能·windows·python·架构·conda