0

Why does this happen? I'm using the same python kernel.

When I import tensor flow in terminal python, it works fine.

$ python
Python 2.7.11 (v2.7.11:)
[GCC 4.2.1 (Apple Inc.) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow
>>> 

However, when I try to open ipython notebook and import it does not work:


ImportError       Traceback (most recent call last)
<ipython-input-1-a649b509054f> in <module>()
----> 1 import tensorflow

ImportError: No module named tensor flow

Why?

Mohammad Yusuf
  • 16,554
  • 10
  • 50
  • 78
David
  • 1
  • 5

1 Answers1

0

You need to install the package for tensorflow to get it to work. Check this post out: ipython install new modules

Community
  • 1
  • 1
bedtime21
  • 199
  • 8
  • If that were the problem, the import wouldn't work from the Python shell either. IPython does not require separate installation of packages unless the environment is configured differently somehow. – David Z Jan 05 '17 at 08:38