【发布时间】:2016-07-07 04:03:18
【问题描述】:
我最近尝试使用命令将我的 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)。
【问题讨论】:
标签: python anaconda python-3.5