我目前正在使用Python 2.7的Anaconda CDH包裹。我想将它升级到Python 3.5。
我发现一些教程说可以使用此命令conda install python=3.5
升级Python版本。但是,我在运行此命令时发现了以下错误。
[root@host ~]# conda install python=3.5
Fetching package metadata ...Could not connect to https://repo.continuum.io/pkgs/free/linux-64/
Could not connect to https://repo.continuum.io/pkgs/pro/linux-64/...
Could not connect to https://repo.continuum.io/pkgs/free/noarch/
Could not connect to https://repo.continuum.io/pkgs/pro/noarch/...
Solving package specifications: ....
The following specifications were found to be in conflict:
- enum34 -> python 2.6*|2.7*|3.3*
- python 3.5*
Use "conda info <package>" to see the dependencies for each package.
我想问一下这是否与主机的网络限制或包问题有关。
提前致谢。
祝你好运, 鲁卡
答案 0 :(得分:0)
错误是说enum34不适用于python3.5。 尝试命令:
conda info enum34
答案 1 :(得分:0)
请尝试以下conda create -n py35 python=3.5
获取更多参考链接
https://www.continuum.io/blog/developer/python-35-support-anaconda