1. 程式人生 > >關於 mac環境下anaconda-navigaotr出現adding featured channels並無法正常開啟問題的解決

關於 mac環境下anaconda-navigaotr出現adding featured channels並無法正常開啟問題的解決

本人只是本科在讀,所以原理什麼的還沒接觸過。今天遇到問題發現並沒有該問題解決方法的部落格,所以把修復的辦法分享給大家。

問題1:navigator無法開啟。停在adding featured channels狀態下。

解決:在mac終端下更新navigator。輸入  conda install navigator 即可。

問題2:Fetching package metadata ......
WARNING: The remote server could not find the noarch directory for the
requested channel with url: https://pypi.tuna.tsinghua.edu.cn/simple



It is possible you have given conda an invalid channel. Please double-check
your conda configuration using `conda config --show`.

If the requested url is in fact a valid conda channel, please request that the
channel administrator create `noarch/repodata.json` and associated
`noarch/repodata.json.bz2` files, even if `noarch/repodata.json` is empty.

$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json

.......

他給出了$ mkdir noarch

$ echo '{}' > noarch/repodata.json

$ bzip2 -k noarch/repodata.json這個解決方法,但是親測不可用!!不可用

解決: 開啟vim .condarc

改成:

channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
show_channels_url:Yes