2017-08-08 62 views
1

我想在Anaconda上安装keras,theano和tensorflow。 以下是我所遵循的步骤: 第1步: 创造了环境 'NNET'在Anaconda安装Keras和Tensorflow后端问题

conda create -nnnet python=3.5 anaconda 

第2步:

activate nnet 

第3步: 在新环境中安装的Spyder

conda install spyder 

步骤4: 安装包装

pip install theano 
pip install tensorflow 
pip install keras 

第5步: 更新所有包

conda update --all 

第6步:在NNET环境 运行Spyder的

现在,当我运行代码尝试导入keras,我得到这个错误:

ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try git clean -xdf (removes all files not under version control). Otherwise reinstall numpy.

Original error was: DLL load failed: The specified module could not be found.

然后我卸载numpy并重新安装。但是错误仍然存​​在。

同样在nnet环境下检查anaconda导航器中安装的软件包时,我看到张量流和theano丢失。 Here is the list I am referring to

我已经使用了这些步骤之前,和以前成功地使用这些软件包。(进口并在代码中使用) 不过,我现在无法弄清的问题。任何形式的帮助或方向将不胜感激。

回答

1

我能够在步骤4中修改的命令来解决这个问题:

第4步:

conda install -c anaconda theano 
conda install -c conda-forge tensorflow 
conda install -c conda-forge keras 

的包现在的工作很好,我也可以导入。