jupyter notebook import tensorflow as tf resolve error

In anaconda5.2.0 tensorflow installation is completed, tested successfully in cmd, but the test being given jupyter notebook: the effect that can not find the specified module

python version is 3.6.5

Solution:

1, the installation ipython, installation jupyter

Tensorflow created when you installed the operating environment before it needs to cut tensorflow

Open anaconda prompt, install ipython

(tensorflow)C:\Windows\system32>conda install ipython

···

Installation jupyter

(tensorflow)C:\Windows\system32>conda install jupyter

...

 

2, the key code execution sentence: IPython kernelspec the install Self---user

(tensorflow)C:\Windows\system32>ipython kernelspec install-self --user

 

3, re-open jupyter notebook, and then test import tensorflow as tf success.

 

 

 

Guess you like

Origin blog.csdn.net/xavier_muse/article/details/84993608