You will need to adjust your conda configuration to proceed.解決辦法


最近要用python2.7的,安裝虛擬環境時發生了下邊的錯誤:

CondaHTTPError: HTTP 404 NOT FOUND for url <https://pypi.doubanio.com/simple/noarch/repodata.json>
Elapsed: 00:00.124769

The remote server could not find the noarch directory for the
requested channel with url: https://pypi.doubanio.com/simple

As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
empty. please request that the channel administrator create
`noarch/repodata.json` and associated `noarch/repodata.json.bz2` files.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state.
Further configuration help can be found at <https://conda.io/docs/config.html>.
View Code

發現鏡像未經授權,也就是說,需要回復到官方源鏡像,恢復鏡像命令:

conda config --remove-key channels

 

可以切換國內其他源鏡像:

    添加源命令:

conda config --add channels

可添加國內鏡像 例:

  清華源鏡像:

#添加清華的源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

中科大的源鏡像:

conda config –add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ 

阿里雲的源鏡像:

conda config --add channels http://mirrors.aliyun.com/pypi/simple/

我添加清華鏡像后下載速度,飛升

 

 

 

參考博客:https://blog.csdn.net/yixieling4397/article/details/100551813

     https://www.jianshu.com/p/1a2b0976cd1a


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM