鱼C论坛

 找回密码
 立即注册
查看: 862|回复: 2

[已解决]anaconda创建新环境老是报错,各位大佬看看这是咋回事

[复制链接]
发表于 2022-2-15 20:19:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
报错信息:

UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: pypi/simple
channel url: https://mirrors.aliyun.com/pypi/simple
error code: 404

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.
最佳答案
2022-2-16 09:52:48
你的conda源错了,https://mirrors.aliyun.com/pypi/simple是pip的源,
在cmd下输入以下命令添加正确的源,并把错误的源删掉

  1. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  2. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  3. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  4. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
  5. conda config --remove channels https://mirrors.aliyun.com/pypi/simple
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2022-2-16 09:52:48 | 显示全部楼层    本楼为最佳答案   
你的conda源错了,https://mirrors.aliyun.com/pypi/simple是pip的源,
在cmd下输入以下命令添加正确的源,并把错误的源删掉

  1. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  2. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  3. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  4. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
  5. conda config --remove channels https://mirrors.aliyun.com/pypi/simple
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2022-2-16 16:07:49 | 显示全部楼层
isdkz 发表于 2022-2-16 09:52
你的conda源错了,https://mirrors.aliyun.com/pypi/simple是pip的源,
在cmd下输入以下命令添加正确的源 ...

感谢大佬解决
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-6-3 12:00

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表