I'm trying to intstall TensorFlow using pip:
$ pip install tensorflow --user
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
What am I doing wrong? So far I've used Python and pip with no issues.
If you are using the Anaconda Python installation,
pip install tensorflow
will give the error stated above, shown below:According to the TensorFlow installation page, you will need to use the
--ignore-installed
flag when running pip install.However, before this can be done see this link to ensure the TF_BINARY_URL variable is set correctly in relation to the desired version of TensorFlow that you wish to install.
You can install it with:
where last versions of tfBinaryURL are here:
https://www.tensorflow.org/install/install_mac#the_url_of_the_tensorflow_python_package
See point 7 in TF instructions on Google page:
As example in July 2018:
I had this problem on OSX Sierra 10.12.2. It turns out I had the wrong version of Python installed (I had Python 3.4 but tensorflow pypi packages for OSX are only for python 3.5 and up).
The solution was to install Python 3.6. Here's what I did to get it working. Note: I used Homebrew to install Python 3.6, you could do the same by using the Python 3.6 installer on python.org
For pyCharm users:
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl**
Install Python 3.5.x 64 bit amd version here. Make sure you add Phython to your PATH variable. Then open a command prompt and type
should give you the following result :
Now type
Try this:
Source:
https://www.tensorflow.org/get_started/os_setup(page no longer exists)Update 2/23/17 Documentation moved to: https://www.tensorflow.org/install