Hello, 

Iam running on

  • Microsoft Windows 7
  • Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:17:26) [MSC v. 1500 64 bit (AMD64)] on win32

TensorFlow package is already installed 

>>pip install --upgrade pip

Requirement already up-to-date: pip in e:\anacod\envs\tensorflow\lib\site-packag

es

>>pip install tensorflow

Requirement already satisfied: tensorflow in e:\anacod\envs\tensorflow\lib\site-

packages

Requirement already satisfied: six>=1.10.0 in :\anacod\envs\tensorflow\lib\site

-packages (from tensorflow)

Requirement already satisfied: numpy>=1.9.2 in e:\anacod\envs\tensorflow\lib\sit

e-packages (from tensorflow)

However,  when I invoke the tensorflow package, the following error is displayed.   

>>> import tensorflow

Traceback (most recent call last):

File "", line 1, in

File "E:\anacod\envs\tensorflow\lib\site-packages\tensorflow\__init__.py", lin

e 4, in

from tensorflow.python import *

File "E:\anacod\envs\tensorflow\lib\site-packages\tensorflow\python\__init__.p

y", line 22, in

from tensorflow.python.client.client_lib import *

File "E:\anacod\envs\tensorflow\lib\site-packages\tensorflow\python\client\cli

ent_lib.py", line 35, in

from tensorflow.python.client.session import InteractiveSession

File "E:\anacod\envs\tensorflow\lib\site-packages\tensorflow\python\client\ses

sion.py", line 11, in

from tensorflow.python import pywrap_tensorflow as tf_session

File "E:\anacod\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ten

sorflow.py", line 28, in

_pywrap_tensorflow = swig_import_helper()

File "E:\anacod\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ten

sorflow.py", line 20, in swig_import_helper

import _pywrap_tensorflow

ImportError: No module named _pywrap_tensorflow

Similar questions and discussions