pip - Error when importing TensorFlow in Python on Windows -
i running python 2.7.10 , installed tensorflow, using pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl.
when run python interpreter , attempt import tensorflow module, following error:
>>> import tensorflow tf traceback (most recent call last): file "<stdin>", line 1, in <module> file "c:\users\or\appdata\local\enthought\canopy\user\lib\site-packages\tensorflow\__init__.py", line 4, in <module> tensorflow.python import * file "c:\users\or\appdata\local\enthought\canopy\user\lib\site-packages\tensorflow\python\__init__.py", line 22, in <module> tensorflow.python.client.client_lib import * file "c:\users\or\appdata\local\enthought\canopy\user\lib\site-packages\tensorflow\python\client\client_lib.py", line 35, in <module> tensorflow.python.client.session import interactivesession file "c:\users\or\appdata\local\enthought\canopy\user\lib\site-packages\tensorflow\python\client\session.py", line 11, in <module> tensorflow.python import pywrap_tensorflow tf_session file "c:\users\or\appdata\local\enthought\canopy\user\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in <module> _pywrap_tensorflow = swig_import_helper() file "c:\users\or\appdata\local\enthought\canopy\user\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper import _pywrap_tensorflow importerror: no module named _pywrap_tensorflow
you can use pip install tensorflow
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl if trying install on windows , have have python3.5 x64 bit , along need install visual c++ 2015 redistributable (x64 version) able import tensorflow
Comments
Post a Comment