Could anyone help me with following error?

1,204 views
Skip to first unread message

Atish

unread,
May 7, 2018, 4:19:02 AM5/7/18
to dis...@tensorflow.org

I am trying to install tensorflow on win7(32bit).

installed via anaconda using following command...

python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
after this when try to validate .... it gives me following error. Help me to rectify it.

(base) C:\Users\atish>activate tensorflow

 

(tensorflow) C:\Users\atish>python

Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:23:52) [MSC v.1900 32 bi

t (Intel)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow as tf

Traceback (most recent call last):

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\py

thon\pywrap_tensorflow.py", line 18, in swig_import_helper

    fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(_

_file__)])

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\imp.py", line 297, in find_

module

    raise ImportError(_ERR_MSG.format(name), name=name)

ImportError: No module named '_pywrap_tensorflow'

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\py

thon\__init__.py", line 54, in <module>

    from tensorflow.python import pywrap_tensorflow

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\py

thon\pywrap_tensorflow.py", line 28, in <module>

    _pywrap_tensorflow = swig_import_helper()

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\py

thon\pywrap_tensorflow.py", line 20, in swig_import_helper

    import _pywrap_tensorflow

ModuleNotFoundError: No module named '_pywrap_tensorflow'

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\__

init__.py", line 24, in <module>

    from tensorflow.python import *

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\py

thon\__init__.py", line 60, in <module>

    raise ImportError(msg)

ImportError: Traceback (most recent call last):

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\py

thon\pywrap_tensorflow.py", line 18, in swig_import_helper

    fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(_

_file__)])

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\imp.py", line 297, in find_

module

    raise ImportError(_ERR_MSG.format(name), name=name)

ImportError: No module named '_pywrap_tensorflow'

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\py

thon\__init__.py", line 54, in <module>

    from tensorflow.python import pywrap_tensorflow

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\py

thon\pywrap_tensorflow.py", line 28, in <module>

    _pywrap_tensorflow = swig_import_helper()

  File "C:\Users\atish\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\py

thon\pywrap_tensorflow.py", line 20, in swig_import_helper

    import _pywrap_tensorflow

ModuleNotFoundError: No module named '_pywrap_tensorflow'

 

 

Error importing tensorflow.  Unless you are using bazel,

you should not try to import tensorflow from its source directory;

please exit the tensorflow source tree, and relaunch your python interpreter

from there.



Atish Londhe,




Brett Cuthbertson

unread,
May 7, 2018, 4:40:13 AM5/7/18
to Discuss
Hi Atish,

You've installed the mac version by the looks of it "https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl"

That's why it's given you the error "ModuleNotFoundError: No module named '_pywrap_tensorflow'". This is typical when python can't load the binary library files that it needs.

Brett.
Reply all
Reply to author
Forward
0 new messages