Failed to import tensorflow in python in Linux using pip3 -


i used pip3 install tensorflow.. , after installation, can find in

/usr/local/lib/python3.6/site-packages 

besides, use pip3 list , find on list:

vincent@ubuntu:/usr/local/lib/python3.6/site-packages/tensorflow$ pip3 list backports.weakref (1.0rc1) bleach (1.5.0) html5lib (0.9999999) markdown (2.6.8) numpy (1.13.1) pip (9.0.1) protobuf (3.3.0) setuptools (28.8.0) 6 (1.10.0) tensorflow (1.2.1) werkzeug (0.12.2) wheel (0.29.0) 

but failed import in python3.6

vincent@ubuntu:/usr/local/lib/python3.6/site-packages/tensorflow$ python python 3.6.1 |anaconda 4.4.0 (64-bit)| (default, may 11 2017, 13:09:58)  [gcc 4.4.7 20120313 (red hat 4.4.7-1)] on linux type "help", "copyright", "credits" or "license" more information. >>> import tensorflow tf traceback (most recent call last):   file "<stdin>", line 1, in <module> modulenotfounderror: no module named 'tensorflow' >>> 

what's wrong it? ran in linux14.04(x64) in vmware

there may multiple versions of python installed. can following ensure tensorflow installed version using -

python -mpip install tensorflow 

here assume using python prompt run python. if using different prompt use in place of python.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -