我已经使用安装程序安装Anaconda 4.2.0
Python 2.7
。但由于一些新的代码更改,我将不得不使用Python 3.6
。因此,我使用安装程序Anaconda 4.3.1
安装了它。现在当我打开Jupyter Notebook
时,我可以看到2个Conda环境 - root和py36。制作“py36”是根环境
Root
环境已安装keras
但py36
没有。当我尝试在py36
安装keras,它给了我下面的错误:
InstallError: Install error: Error: one or more of the packages already installed depend on 'conda'
and should only be installed in the root environment: conda-env conda
These packages need to be removed before conda can proceed.
如何让我的py36
是根的环境,所以我可以安装就可以了keras
和运行我的代码?
你可以在1个畅达同时安装蟒蛇,作为一个虚拟VENV:使用'畅达创建-n py35蟒蛇= 3.5 anaconda',并希望使用时'只是激活它激活py35'然后'jupyter notebook'打开笔记本或'pip install'激活py35后安装到env –
我该怎么做?你会碰巧知道一个教程吗? – Patthebug
我用它每天,教程在这个环节https://conda.io/docs/py2or3.html#install-a-different-version-of-python –