pineapple
pineapple copied to clipboard
Cannot import tensorflow
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'
Basically you can't import. https://github.com/nwhitehead/pineapple/issues/62
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.