栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

ERROR conda.core.link:

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ERROR conda.core.link:

在jupyter中有python3.7的基础上,想要再加个2.7.
按照各种教程 先创建虚拟环境, 安装python=2.7后
执行

conda install ipykernel

会出现报错:

ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::ipykernel

按照这个报错浏览各个网站,各种尝试,均没有解决问题(包括设置环境变量,更新conda,卸载各种包又重装各种包…)

遂看一下里面其他报错信息,往上翻还有:

(python27) C:Usershy8999>conda install ipykernel
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

两个Solving environment都是failed。

第一个:

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

网上的解决方法仍不适用。

第二个:

Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.

解决办法办法见链接
按照程序修改清华源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
————————————————
版权声明:本文为CSDN博主「princemrgao」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/princemrgao/article/details/105705423

而后,conda install ipykernel 即可成功。
重启jupyter,已有python2:

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/755607.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号