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

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版本的)<然后成功下载。不能保证每个人情况一样,我的可以了。

猜你喜欢

转载自blog.csdn.net/qq_40212975/article/details/89400735