Mam kilka importu w moim jupyter notebooka, a wśród nich jest tensorflow:nr moduł o nazwie tensorflow w 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
mam go na moim komputerze, w specjalnym środowisku i wszystkie podłączone rzeczy także:
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)
mogę importować tensorflow na moim komputerze:
>>> import tensorflow as tf
>>>
więc jestem zdezorientowany, dlaczego jest to kolejny siedzieć w notatniku?
Prawdopodobnie wydanie sys.path Założę się, że twoje "jupyter" i "python" pochodzą z różnych instalacji Pythona, więc zainstalowałeś tensorflow dla jeden, ale nie drugi –
Możesz zainstalować jądro w wersji ipython w swoim specjalnym środowisku. – cel
Możliwy duplikat [Brak modułu o nazwie tensor flow - iPython notebook] (http://stackoverflow.com/questions/37756452/no-module-named-tensor-flow-ipython-notebook) –