ho alcune importazioni nel mio quaderno jupyter e tra loro è tensorflow:No module named tensorflow in jupyter
ImportError Traceback (most recent call last)
<ipython-input-2-482704985f85> in <module>()
4 import numpy as np
5 import six.moves.copyreg as copyreg
----> 6 import tensorflow as tf
7 from six.moves import cPickle as pickle
8 from six.moves import range
ImportError: No module named tensorflow
Ce l'ho sul mio computer, in un ambiente speciale e tutte le cose collegate anche:
Requirement already satisfied (use --upgrade to upgrade): tensorflow in /Users/mac/anaconda/envs/tensorflow/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): six>=1.10.0 in /Users/mac/anaconda/envs/tensorflow/lib/python2.7/site-packages (from tensorflow)
Requirement already satisfied (use --upgrade to upgrade): protobuf==3.0.0b2 in /Users/mac/anaconda/envs/tensorflow/lib/python2.7/site-packages (from tensorflow)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.10.1 in /Users/mac/anaconda/envs/tensorflow/lib/python2.7/site-packages (from tensorflow)
Requirement already satisfied (use --upgrade to upgrade): wheel in /Users/mac/anaconda/envs/tensorflow/lib/python2.7/site-packages (from tensorflow)
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./setuptools-23.0.0-py2.7.egg (from protobuf==3.0.0b2->tensorflow)
posso importare tensorflow sul mio computer:
>>> import tensorflow as tf
>>>
Quindi sono confuso perché questo è un altro sit stai andando su un quaderno?
Probabilmente problema di sys.path Scommetto che "jupyter" e "python" provengono da diverse installazioni Python, quindi hai installato tensorflow per uno, ma non l'altro –
Si consiglia di installare un kernel ipython nel proprio ambiente speciale. – cel
Possibile duplicato di [Nessun modulo denominato flusso tensoriale - taccuino iPython] (http://stackoverflow.com/questions/37756452/no-module-named-tensor-flow-ipython-notebook) –