-
Notifications
You must be signed in to change notification settings - Fork 74.7k
Cannot import tensorflow under python #647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks (from your reported output) like this is an Anaconda issue. From what I can tell, the recommended way to install using Anaconda is to do the following:
|
Hi Derek, Thanks a lot for your reply. Based on your suggestion, I successfully installed a virtualenv of tensorflow using the following: $ conda install virtualenv # suggested by the output of terminal not using pip install Then, I tested the installation using the mnist demo. It worked! Cool! |
Glad to hear it worked! One minor suggestion: sorry for the wrong link, but you should probably install from the following link to get the latest (0.6.0) version of TensorFlow: https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl |
Just to add to this issue: The original problem existed, because a |
Hey osdf,
Best, |
Hi all, The above given suggestion is fr installing tensorflow in linux under conda environment. I am trying to install it on windows environment. Kindly help I tried |
I had the same problem as sunformoon and mrry's comment solved it. I followed the online tutorial for TensorFlow ( https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html#test-the-tensorflow-installation ) on installing tensorflow on a virtualenv when I got the problem |
For Ubuntu 64 bit CPU Only : $ pip install virtualenv For more and different binary versions : |
To me |
I have installed tensorflow on my Mac using simple pip command (e.g. pip install tensorflow). Now I am trying to test the setup by invoking python from command line and getting the same error:
Please help, what might be wrong here? |
I just tried doing the same thing by invoking python3 from command line instead of python and now the import tensorflow worked smoothly. What does that mean? Tensorflow has no compatibility with python 2.7 or 2.8?? |
$ cd /path/to/tensorflow/bin
done! |
how can i use tensorflow in pypy? help!!! |
@AhmetTavli |
Implementation of Inception V4 (tensorflow#18)
In case of you've validated tensorflow was corrected installed with terminal, while this error triggered in Ipython notebook, their might be a difference between your local python and ipython version, try this:
To solve, look at this. |
I solve the problem by following steps (in Windows) this fix the problem in pycharm: |
I am using mac,
I used conda install as an alternate to solve the problem. |
I updated tensorflow from 1.1.0 to 1.3.0 using the wheel file: tensorflow-1.3.0-cp35-cp35m-win_amd64.whl and in the line:
I got the following error:
Any help? |
Always activate the tensorflow environment (activate tensorflow) in the Anaconda prompt window before using tensorflow. |
I have the same issue on my windows box. like osdf commented on Feb 2, 2016, I run anaconda prompt as administrator, then system can find the tensorflow I installed. |
first step is to ACTIVATE tensorflow and that should do allow you to import tensorflow. particularly in my case, now go to the folder where premade_estimator resides WORKED!! |
…pstream-zyin_remove_contrib_targets Removing contrib code base and targets
Hi all, I first successfully installed the tensorflow following the instructions of "Pip Installation". However, I couldn't import tensorflow in Python. Thanks a lot!!
The error comes like this:
zhuotun@sunformoon:~$ python
Python 2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
I double check that I have installed successfully the tensorflow by re-installing the tensorflow as following:
zhuotun@sunformoon:~$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
[sudo] password for zhuotun:
Downloading/unpacking https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
Downloading tensorflow-0.6.0-cp27-none-linux_x86_64.whl (11.4MB): 11.4MB downloaded
Requirement already up-to-date: six>=1.10.0 in /usr/local/lib/python2.7/dist-packages (from tensorflow==0.6.0)
Requirement already up-to-date: protobuf==3.0.0a3 in /usr/local/lib/python2.7/dist-packages (from tensorflow==0.6.0)
Requirement already up-to-date: wheel in /usr/local/lib/python2.7/dist-packages (from tensorflow==0.6.0)
Requirement already up-to-date: numpy>=1.8.2 in /usr/local/lib/python2.7/dist-packages (from tensorflow==0.6.0)
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages (from protobuf==3.0.0a3->tensorflow==0.6.0)
Installing collected packages: tensorflow
Successfully installed tensorflow
The text was updated successfully, but these errors were encountered: