您的位置:首页 > 编程语言 > Python开发

在pyenv下使用anaconda环境下更新python 时出错

2019-04-19 15:11 288 查看

conda install python=3.6
Solving environment: failed

CondaHTTPError: HTTP 404 NOT FOUND for url https://conda.anaconda.org/conda-virtualenvwrapper/noarch/repodata.json
Elapsed: 01:06.926256
CF-RAY: 4c9cbd30484da2d8-HKG

The remote server could not find the noarch directory for the
requested channel with url: https://conda.anaconda.org/conda-virtualenvwrapper

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.

上面这个问题出现了很久,终于勉强解决了,我时直接恢复默认源就解决了
1.输入conda config --show channels

2.输入conda config --remove-key channels,这个命令是恢复默认源
之后再查看,输入conda config --show channels,发现channels只剩

再输入conda install python=3.6(我是安装Python3.6版本的)<然后成功下载。不能保证每个人情况一样,我的可以了。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: