在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.jsonand
associated
noarch/repodata.json.bz2file, even if
noarch/repodata.jsonis
empty. please request that the channel administrator create
noarch/repodata.jsonand associated
noarch/repodata.json.bz2files.
$ 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 channelsto 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版本的)<然后成功下载。不能保证每个人情况一样,我的可以了。
相关文章推荐
- 如何将Anaconda更新到想要的python版本(其实使用的是Anaconda中的切换不同环境的方法,不过步骤挺好)
- python 使用pyenv安装多个版本的python环境
- Python多版本切换工具-Pyenv\virtualenv及Anaconda科学计算环境的配置
- 关于使用Aptana+Pydev构建Python开发环境的更新(Django)
- 如何在Anaconda中把python环境更新更高版本
- 机器学习入门必备Anaconda多环境多版本python配置指导及使用
- Python开发环境Anaconda3使用指南(入门篇)
- Anaconda用法:使用conda穿创建python的虚拟环境
- Python使用seaborn包之路——下载包、更新anaconda3、jupyter notebook切换Python3
- 详解使用 pyenv 管理多个版本 python 环境
- 重拾Python(1):使用Anaconda搭建Python开发环境(Windows7)
- 使用Anaconda3建立虚拟独立的python2.7环境方法
- centos搭建pyenv环境以及使用pyenv安装Python和ipython
- 在Anaconda中安装(非自带的)python包或者更新已有的python包,解决sklearn无法使用的问题
- anaconda 和 python 安装;jupyter 开发环境的使用
- pycharm中使用anaconda部署python环境
- 使用Anaconda3建立虚拟独立的python2.7环境
- Win10下使用Anaconda搭建带OpenCV库的Python开发环境
- Python多版本切换工具-Pyenv\virtualenv及Anaconda科学计算环境的配置
- Anaconda集成Python开发环境安装使用介绍