gpt4 book ai didi

python - Python 3.5 更新失败后 Anaconda 根环境不一致

转载 作者:太空狗 更新时间:2023-10-29 17:48:52 25 4
gpt4 key购买 nike

我最近尝试使用以下命令将我的 Anaconda 安装的根环境从 Python 3.4 更新到 Python 3.5

conda install python=3.5

完成后,我跑了

conda update --all python=3.5

希望它将所有其他包更新到 Python 3.5 版本,但它失败并显示以下错误消息:(请注意,我在此列表中间省略了许多包)

The following specifications were found to be in conflict:
- backports_abc -> python 2.7*|3.4*
- certifi -> python 2.7*|3.4*
- colorama -> python 2.7*|3.4*|3.5*
- conda -> python 2.7*|3.4*|3.5*
- conda-env -> python 2.7*|3.4*
- decorator -> python 2.7*|3.4*
- django -> python 2.7*|3.4*
- ecdsa -> python 2.7*|3.4*
- flask -> python 2.7*|3.4*
- greenlet -> python 2.6*|2.7*|3.3*|3.4*|3.5*
- ipykernel -> python 2.7*|3.4*

[...many more...]

- simplegeneric -> python 2.7*|3.4*|3.5*
- six -> python 2.7*|3.4*
- werkzeug -> python 2.7*|3.4*
- wheel -> python 2.7*|3.4*
Use "conda info <package>" to see the dependencies for each package.

看来我现在搞砸了我的根环境。我只想卸载其中的所有包,但是命令

conda uninstall --all

只是提示:

Error: cannot remove current environment. deactivate and run conda remove again

(当然我不能停用我的环境,因为我已经在根环境中了。)

那么,有什么方法可以轻松清理根环境呢?或者,有没有办法正确更新 Python 3.5 的所有包?

编辑(2016 年 5 月 10 日)

一开始我忘了说我运行的系统是 Mac OS X 10.11 (El Capitan)。

最佳答案

关注these steps即可进行全新安装:

首先,删除本地 anaconda:sudo rm -rf anaconda

然后,从 here 重新安装它

关于python - Python 3.5 更新失败后 Anaconda 根环境不一致,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36117606/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com