nwhitehead / pineapple

http://nwhitehead.github.io/pineapple/
Other
351 stars 26 forks source link

Cannot import tensorflow #53

Open angoodkind opened 8 years ago

angoodkind commented 8 years ago

I recently installed the python3 version of tensorflow. I can import it from the shell (lauched python3, not python. However, I get the following error when trying to import it into pineapple:


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-41389fad42b5> in <module>()
----> 1 import tensorflow as tf

ImportError: No module named 'tensorflow'
soobrosa commented 8 years ago

Basically you can't import. https://github.com/nwhitehead/pineapple/issues/62

kevinr commented 7 years ago

I ran into this while Googling for the same issue, and later found from data/examples/python2.7/Packages.ipynb that it looks like

import pineapple
%pip install tensorflow

is the right way to do this.