安装tensorflow后,在Jupyter notebook 中import Tensorflow时报错ImportError : No Moduled Name “tensorflow”。
解决方案:Anaconda3 支持Python3.6,现在Tensorflow也支持了Python3.6,因此本文在Anaconda Prompt中安装Tensorflow(cpu版)
一:Anacoda安装Tensorflow
1:打开Anacoda3 prompt
2:输入 conda create -n tensorflow python=3.6,创建tensorflow环境
3:输入activate tensorflow ,激活环境
4:pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple (从国内镜像源下载,速度极快且稳定)
安装完成tensorflow,进行测试
python
import tensorflow as tf
但是在Jupyter notebook 中导入Tensorflow报错ImportError : No Moduled Name “tensorflow”.
二:安装ipython 和 jupyter
1. <tensorflow> 输入 conda install ipython
2. <tensorflow> 输入 conda inst