_execute(502): An error occurred while installing package ‘conda-forge::setuptools-65.5.1-...‘.

报错信息:

Executing transaction: failed
ERROR conda.core.link:_execute( 502): An error occurred while installing package 'conda-forge::setuptools-65.5.1-pyhd8ed1ab_0'.
FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
Attempting to roll back.

报错解决方法:

# 添加清华镜像源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

# 搜索时显示地址

conda config --set show_channel_urls yes

  1. 查看conda通道的配置

conda config --show channels

_execute(502): An error occurred while installing package ‘conda-forge::setuptools-65.5.1-...‘._第1张图片

这个信息可以在C:\Users\86181下的.condarc文件中看到。

如果通道中含有defaults需要删掉,这样在下载时会默认使用清华镜像源:

conda config --remove channels defaults

2. 重置通道设置

如果想要删除添加的所有镜像源,重置conda默认源,可以使用以下语句:

conda config --remove-key channels

参考博客:

https://blog.csdn.net/anqier2021/article/details/128799956

https://blog.csdn.net/Calistar/article/details/127866608

你可能感兴趣的:(python,conda,python,深度学习)