100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > An unexpected error has occurred. Conda has prepared the above report. 解决办法

An unexpected error has occurred. Conda has prepared the above report. 解决办法

时间:2024-06-28 04:57:05

相关推荐

An unexpected error has occurred. Conda has prepared the above report. 解决办法

使用 miniconda 创建虚拟环境的时候,报错:

An unexpected error has occurred. Conda has prepared the above report.

网上找了很多方法,都是说:

方法一

执行 conda clean --packages && conda clean --all && conda update --all

方法二

删除这个文件

C:\Users[user_name].condarc

上述方法可能可以,但是如果试了好几次都不行的话,问题可能是因为你开了 VPN 或者 系统代理!

所以解决办法就是:关掉VPN或禁用代理!!!关掉VPN或禁用代理!!!关掉VPN或禁用代理!!!

-----------------------------------分割线-----------------------------------

.2.20 添加:

如果想开代理下载python的库,可以使用以下方法(win10系统,亲测可用):

运行以下代码获取代理地址和端口号:

>>> from urllib.request import getproxies>>> getproxies(){'https': 'http://127.0.0.1:xxxxx', 'http': 'http://127.0.0.1:xxxxx'}

xxxxx为端口号。

添加windows系统变量: win+r,输入 sysdm.cpl高级 -> 环境变量 -> 系统变量一栏中新建:

重启电脑

参考:/conda/conda/issues/9794

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。