赞
踩
问题描述:
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: simple
channel url: https://pypi.python.org/simple
error code: 404
我在conda中使用conda search --full --name python
来查看可用的python版本,但是出现了上面的错误,意思是
频道无效,或无法访问;频道的url地址是https://pypi.python.org/simple,错误代码是404。
404是指链接指向的网页不存在,即原始网页的URL失效,我很疑惑的是https://pypi.python.org/simple是官方指定的pip下载地址
通过查找一些博客得知,官方已经更新了地址,我在.condarc文件中把这个地址更换成了清华源地址,阿里云的源还有中科大的都会报404的错误。
直到我使用了下面的这段代码
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://repo.continuum.io/pkgs/free/ conda config --add channels https://repo.continuum.io/pkgs/main/ conda config --set show_channel_urls yes
---------------------
作者:Msjiangmei
来源:CSDN
原文:https://blog.csdn.net/Msjiangmei/article/details/90610153
终于解决了能够使用,不用再被404支配了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。