该问题处理之前的状态:
环境:Ubuntu16.04 + Anaconda + tensorflow1.6(使用python3.6)
状态展示
在ipython中执行完import keras之后,出现“no moudle named keras”
处理方法
1、安装ipykernel
conda install ipykernel
2、找到ipython的启动文件
which ipython
3、得到正确的python解释器路径
source activate tensorflow
python
import sys
sys.executable
4、修改ipython启动文件的内容