721

I'm trying to install TensorFlow using pip:

$ pip install tensorflow --userCollecting tensorflowCould 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.

Perry's user avatar
Perry
3,90326 gold badges40 silver badges51 bronze badges
askedAug 11, 2016 at 12:28
16
  • 19
    try this:pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.1-py2-none-any.whlCommentedMar 24, 2017 at 13:02
  • 3
    The correct way to install it would becode'$ pip install --upgrade TF_BINARY_URL # Python 2.7 $ pip3 install --upgrade TF_BINARY_URL # Python 3.Ncode`CommentedApr 7, 2017 at 5:03
  • 48
    For me this happens with python 3.7, After hours of struggle I used 3.6 and that worked.CommentedSep 7, 2018 at 22:59
  • 5
    Use Anaconda for tensorflow installationCommentedSep 16, 2018 at 18:53
  • 7
    Currently facing the same problem in Python3.9 . In python3.8 , it works fineCommentedOct 26, 2020 at 10:11

61 Answers61

878

I found this to finally work.

python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

Edit 1: This was tested on Windows (8, 8.1, 10), Mac and Linux. Changepython3 topython according to your configuration. Changepy3 topy2 in the url if you are using Python 2.x.

Edit 2: A list of different versions if someone needs:https://storage.googleapis.com/tensorflow

Edit 3: A list of urls for the available wheel packages is available here:https://www.tensorflow.org/install/pip#package-location

halfer's user avatar
halfer
20.2k20 gold badges110 silver badges207 bronze badges
answeredMar 4, 2017 at 13:59
Yash Kumar Verma's user avatar
Sign up to request clarification or add additional context in comments.

15 Comments

This may be the right answer, but users please note that this command is for Mac only, not linux.
That's is wierd. As the URL which u have specified mentions Mac & if you try to use this url it will install. But tensorflow will actually not work.
The windows version of the URL (for v.1.2.1) isstorage.googleapis.com/tensorflow/windows/cpu/…. Thisonly works with the AMD64 version of Python. A full list of tensorflow versions is here:storage.googleapis.com/tensorflow
tensorflow only supports python 64-bit. You might be using 32-bit installation. Install 64-bit python and it works withpip install tensorflow directly. Refer to the correct answers below before trying this approach.
You can find the respective storage link here:tensorflow.org/install/pip
|
331

You need a 64-bit version of Python and in your case are using a 32-bit version. As of now Tensorflow only supports64-bit versions of Python 3.5.x and 3.8.x on Windows. See theinstall docs to see what is currently supported

To check which version of Python you are running, typepython orpython3 to start the interpreter, and then typeimport struct;print(struct.calcsize("P") * 8) and that will print either32 or64 to tell you which bit version of Python you are running.

From comments:

To download a different version of Python for Windows, go topython.org/downloads/windows and scroll down until you see the version you want that ends in a "64". That will be the 64 bit version that should work with tensorflow

Pikamander2's user avatar
Pikamander2
8,4504 gold badges58 silver badges75 bronze badges
answeredDec 11, 2016 at 9:59
rocket1037's user avatar

13 Comments

>>> import platform;print(platform.architecture()) ('64bit', 'WindowsPE') but still I am seeing this exception
Suspicious of the "top" answer; this seems simple, intuitive, fast and safe by comparison. Tested ok with Python 3.6.4 on Windows 7.
To check which version of Python you are running, typepython orpython3 to start the interpreter, and then typeimport struct;print(struct.calcsize("P") * 8) and that will print either 32 or 64 to tell you which type you are running.
My problem turned out to be that Tensorflow at this time does not yet support Python 3.7 (it supports up to 3.6.x). After doing more reading through Github issues where it has been requested, it seems support will probably be out soon.
Are the supported python versions documented anywhere?
|
91

You need to use the right version of Python andpip.

On Windows 10, with Python 3.6.X version I was facing the same problem, then after checking deliberately I noticed I had the Python-32 bit installation on my 64 bit machine. Remember TensorFlow isonly compatible with 64bit installation of Python,not the 32 bit version of Python

Image

If we download Python from python.org, the default installation would be 32 bit. So we have to download the 64 bit installer manually to install Python 64 bit. And then add below toPATH environment.

C:\Users\AppData\Local\Programs\Python\Python36C:\Users\AppData\Local\Programs\Python\Python36\Scripts

Then rungpupdate /Force on command prompt. If the Python command doesn't work for 64 bit then restart your machine.

Then run python on command prompt.It should show 64 bit.

C:\Users\YOURNAME>pythonPython 3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.

Then run below command to install tensorflow CPU version (recommended)

pip3 install --upgrade tensorflow

October 2020 update:

Tensorflow now supports Python 3.5.x through Python 3.8.x, but you still have to use a 64-bit version.

If you need to run multiple versions of Python on the same machine, you can use a virtual environment to help manage them.

Null's user avatar
Null
1,9709 gold badges32 silver badges36 bronze badges
answeredNov 30, 2017 at 21:17
Morse's user avatar

6 Comments

While providing a link that may answer the question is fine, but it will be better if you can also include the necessary explanation here in the answer itself. Link may not work in the near future for any number of reasons say author removes/changes the pages, etc.
I did not realise I had installed Python 3.6.x 32-bit version on my 64-bit machine. Need to uninstall that and follow your instruction in this post. All works now. Thank you!
Thanks. To simplify this answer 2 points helped me 1.) use 64 bit version. 2.) Only python 3.5 and 3.6 are supported. Don't try use 3.7
Thanks for the Oct 2020 update - I successfully installed tensorflow on python 3.8.5
No support for python 3.9 so if that's your version your sol atm.
|
56

From tensorflow website: "You will need pip version 8.1 or later for the following commands to work". Run this command to upgrade your pip, then try install tensorflow again:

pip install --upgrade pip
answeredDec 30, 2016 at 6:52
Bang's user avatar

6 Comments

$ pip3 --version pip 9.0.1 from c:\work\apps\python\lib\site-packages (python 3.6) But still I see this error.
tensorflow does not work with python 3.6. You need version 3.5
Also, I had to use python -m pip install --upgrade pip. Otherwise I would get file permission issues...
why not python 3.6 (latest version ),but python 3.5( lower version ) works It does'nt make any sense @Jodo
@guru_007 they stick to the version available on the latest Ubuntu LTS which is 3.5 at the moment (16.04) as far as I know.
|
44

I figured out that TensorFlow 1.12.0 only works with Python version 3.5.2. I had Python 3.7 but that didn't work. So, I had to downgrade Python and then I could install TensorFlow to make it work.

To downgrade your python version from 3.7 to 3.6

conda install python=3.6.8
answeredMar 1, 2017 at 20:03
Sujoy's user avatar

5 Comments

how to downgrade v3.6 to v3.5.2 ?
Install 3.5.2 and update your classpath to point to 3.5.2. You can change back to 3.6 for other python stuff.
RuntimeWarning: compile time version 3.6 of module 'tensorflow.python.framework.fast_tensor_u til' does not match runtime version 3.7.... It is due to this error it is unable to fetch
At time of writing this comment, python 3.7 was compatible with tensorflow, but python 3.8 was not.
You can (and should) also use multiple virtual environments for that purpose instead of downgrading like here:stackoverflow.com/a/45750900/4575793
43

If you are trying to install it on a windows machine you need to have a 64-bit version of python 3.5. This is the only way to actually install it. From thewebsite:

TensorFlow supports only 64-bit Python 3.5 on Windows. We have tested the pip packages with the following distributions of Python:

Python 3.5 from Anaconda

Python 3.5 from python.org.

You can download the proper version of python fromhere (make sure you grab one of the ones that says "Windows x86-64")

You should now be able to install withpip install tensorflow orpython -m pip install tensorflow (make sure that you are using the right pip, from python3, if you have both python2 and python3 installed)

Remember to install Anaconda 3-5.2.0 as the latest version which is 3-5.3.0 have python version 3.7 which is not supported by Tensorflow.

answeredJan 18, 2017 at 16:23
Buzz's user avatar

Comments

22

Updated 11/28/2016: TensorFlow is now available in PyPI, starting with release 0.12. You can type

pip install tensorflow

...or...

pip install tensorflow-gpu

...to install the CPU-only or GPU-accelerated version of TensorFlow respectively.


Previous answer: TensorFlow is not yet in thePyPI repository, so you have to specify the URL to the appropriate "wheel file" for your operating system and Python version.

The full list of supported configurations is listed on theTensorFlow website, but for example, to install version 0.10 for Python 2.7 on Linux, using CPU only, you would type the following command:

$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl
answeredAug 11, 2016 at 15:17
mrry's user avatar

9 Comments

will it work or will I need to setup other things also according to whattensorflow.org/versions/r0.10/get_started/os_setup.html says?
I still get the same error on OSX, is it working for everyone else?
@lemonzi, I also had an error in OSX, just posted a solution that worked for me (solution was to make sure I had Python 3.6 installed)
@JuliaSchwarz This was not the issue; I'm using Python 2.7, and I also tried with a fresh install of Python 3.6. I ended up specifying the URL manually for the 1.0.0 alpha and it worked.
After trying every other solution, this worked for me. I'm using Python 2.7 on linux.
|
17

Install Python 3.5.x 64 bit amd versionhere. Make sure you add Python to your PATH variable. Then open a command prompt and type

python -m pip install --upgrade pip

should give you the following result :

 Collecting pip Using cached pip-9.0.1-py2.py3-none-any.whl Installing collected packages: pip Found existing installation: pip 7.1.2 Uninstalling pip-7.1.2: Successfully uninstalled pip-7.1.2 Successfully installed pip-9.0.1

Now type

 pip3 install --upgrade tensorflow
ascripter's user avatar
ascripter
6,31512 gold badges54 silver badges74 bronze badges
answeredApr 14, 2017 at 19:42
Krishna Gopal Kundu's user avatar

1 Comment

Fatal error in launcher: Unable to create process using '"'
11

I had the same problem and solved with this:

# Ubuntu/Linux 64-bit, CPU only, Python 2.7(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Installing from sources" below.# Mac OS X, CPU only, Python 2.7:(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.1-py2-none-any.whl# Mac OS X, GPU enabled, Python 2.7:(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow_gpu-0.12.1-py2-none-any.whl# Ubuntu/Linux 64-bit, CPU only, Python 3.4(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp34-cp34m-linux_x86_64.whl# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Installing from sources" below.(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-0.12.1-cp34-cp34m-linux_x86_64.whl# Ubuntu/Linux 64-bit, CPU only, Python 3.5(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp35-cp35m-linux_x86_64.whl# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Installing from sources" below.(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-0.12.1-cp35-cp35m-linux_x86_64.whl# Mac OS X, CPU only, Python 3.4 or 3.5:(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.1-py3-none-any.whl# Mac OS X, GPU enabled, Python 3.4 or 3.5:(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow_gpu-0.12.1-py3-none-any.whl

Plus:

# Python 2(tensorflow)$ pip install --upgrade $TF_BINARY_URL# Python 3(tensorflow)$ pip3 install --upgrade $TF_BINARY_URL

Found onDocs.

UPDATE!

There arenew links for new versions

For example, for installingtensorflow v1.0.0 in OSX you need to use:

https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py2-none-any.whl

instead of

https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.1-py2-none-any.whl
answeredMar 20, 2017 at 15:32
Andres's user avatar

1 Comment

Consider having a look at this:github.com/fo40225/tensorflow-windows-wheel
11

I had the same error when trying to install on my Mac (using Python 2.7). A similar solution to the one I'm giving here also seemed to work for Python 3 on Windows 8.1 according to a different answer on this page byYash Kumar Verma

Solution

Step 1: go toThe URL of the TensorFlow Python package section of the TensorFlow installation page and copy the URL of the relevant link for your Python installation.

Step 2: open a terminal/command prompt and run the following command:
pip install --upgrade [paste copied url link here]

So for me it was the following:
pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.2.0-py2-none-any.whl

Update (July 21 2017): I tried this with some others who were running on Windows machines with Python 3.6 and they had to change the line inStep 2 to:python -m pip install [paste copied url link here]

Update (26 July 2018): For Python 3.6.2 (not 3.7 because it's in 3.6.2 in TF Documentation), you can also usepip3 install --upgrade [paste copied URL here] inStep 2.

Infinite Loops's user avatar
Infinite Loops
6813 gold badges11 silver badges24 bronze badges
answeredJun 18, 2017 at 21:35
Jonny Brooks's user avatar

5 Comments

This solution installs, but when I import tensorflow I get an error:
I've only used Keras with Tensorflow as a backend and it works fine. What error message do you get?
Just tested and tensorflow imports fine for me.
My problem was the version of Python I was using. I didn't know Python 3.5 was a requirement. Now it works. Thanks for the tip.
Great to hear that it worked in the end. If you had to do something different it would be worth you posting a separate answer. Otherwise, if you could give my answer an upvote that would be great. I struggled for a while to find a solution that worked so doing either one of the two will hopefully help others
8

Try this:

export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.1-py3-none-any.whlpip3 install --upgrade $TF_BINARY_URL

Source:https://www.tensorflow.org/get_started/os_setup (page no longer exists)

Update 2/23/17Documentation moved to:https://www.tensorflow.org/install

answeredJan 24, 2017 at 5:50
David's user avatar

Comments

7
  1. Install python by checking Add Python to Path
  2. pip3 install --upgradehttps://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl

This works for windows 10.0

answeredApr 9, 2017 at 19:46
Dinesh Karn's user avatar

Comments

7

Try this, it should work:

 python.exe -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
answeredJan 7, 2018 at 16:14
HISI's user avatar

Comments

6

I had the same problem. After uninstalling the 32-bit version of python and reinstalling the 64-bit version I tried reinstalling TensorFlow and it worked.

Link to TensorFlow guide:https://www.tensorflow.org/install/install_windows

answeredApr 21, 2017 at 12:43
Stephen's user avatar

1 Comment

yes, the 64-bit version fixed it. The install from the main download page is a 32-bit. The link above provides a URL to the 64 bit version.
6

If you run into this issue recently (say, after Python 3.7 release in 2018), most likely this is caused by the lack of Python 3.7 support (yet) from the tensorflow side. Try using Python 3.6 instead if you don't mind. There are some tricks you can find fromhttps://github.com/tensorflow/tensorflow/issues/20444, but use them at your own risk. I used the one harpone suggested - first downloaded the tensorflow wheel for Python 3.6 and then renamed it manually...

cp tensorflow-1.11.0-cp36-cp36m-linux_x86_64.whl tensorflow-1.11.0-cp37-cp37m-linux_x86_64.whlpip install tensorflow-1.11.0-cp37-cp37m-linux_x86_64.whl

The good news is that there is a pull request for 3.7 support already. Hope it will be released soon.

answeredNov 5, 2018 at 14:48
zinc's user avatar

Comments

6

There are multiple groups of answers to this question. This answer aims to generalize one group of answers:

There may not be a version of TensorFlow that is compatible with your version of Python. This is particularly true if you're using a new release of Python. For example, there may be a delay between the release of a new version of Python and the release of TensorFlow for that version of Python.

In this case, I believe your options are to:

  1. Upgrade or downgrade to a different version of Python. (Virtual environments are good for this, e.g.conda install python=3.6)
  2. Select a specific version of tensorflow that is compatible with your version of python, e.g. if you're still using python3.4:pip install tensorflow==2.0
  3. Compile TensorFlow from the source code.
  4. Wait for a new release of TensorFlow which is compatible with your version of Python.
craq's user avatar
craq
1,5142 gold badges20 silver badges40 bronze badges
answeredOct 25, 2019 at 7:46
Eric McLachlan's user avatar

1 Comment

This page will show you which versions of tensorflow are compatible with which versions of python and CUDA:tensorflow.org/install/source#gpu
6

as of today, if anyone else is wondering,python >= 3.9 will cause the same issueuninstall python 3.9, and install 3.8 , it should resolve it

answeredFeb 5, 2021 at 4:16
Ahmed's user avatar

2 Comments

You don't have to uninstall python. You can have multiple versions! Just invoke the correct pip withpython3.8 -m pip install tensorflow
True. but for someone doing generic python, only using it occasionally , without a clear need to a specific version, I would prefer having a single version. just an opinion :)
5

If you are using the Anaconda Python installation,pip install tensorflow will give the error stated above, shown below:

Collecting tensorflowCould not find a version that satisfies the requirement tensorflow (from versions: )No matching distribution found for tensorflow

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 thislinkto ensure the TF_BINARY_URL variable is set correctly in relation to the desired version of TensorFlow that you wish to install.

answeredJan 19, 2017 at 19:38
tallamjr's user avatar

Comments

5

If you're trying to install tensorflow in anaconda and it isn't working, then you may need to downgrade python version because only3.6.x is currently supported while anaconda has the latest version.

  1. check python version:python --version

  2. if version >3.6.x then follow step 3, otherwise stop, the problem may be somewhere else

  3. conda search python

  4. conda install python=3.6.6

  5. Check version again:python --version

  6. If version is correct, install tensorflow (step 7)

  7. pip install tensorflow

answeredSep 30, 2018 at 10:49
ACV's user avatar

Comments

5

For pyCharm users:

  1. Check pip version:pip3 -V
  2. If pip is older than 9.0.1:py -3 -m pip install --upgrade pip
  3. Then:py -3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
Cadoiz's user avatar
Cadoiz
1,7042 gold badges25 silver badges36 bronze badges
answeredMar 13, 2018 at 13:12
Alex Gore's user avatar

1 Comment

Be aware, that the given link is just for one single legacy version. For the different possible versions of python and tensorflow, you can refer to my answer here:stackoverflow.com/a/62855139/4575793 A huge list of different wheels/compatibilities can be found here:github.com/fo40225/tensorflow-windows-wheel
4

Unfortunately my reputation is to low to command underneath @Sujoy answer.

In their docs they claim to support python 3.6.The link provided by @mayur shows that their is indeed only a python3.5 wheel package. This is my try to install tensorflow:

Microsoft Windows [Version 10.0.16299.371](c) 2017 Microsoft Corporation. All rights reserved.C:\>python3 -m pip install --upgrade pipRequirement already up-to-date: pip in d:\python\v3\lib\site-packages (10.0.0)C:\>python3 -m pip -Vpip 10.0.0 from D:\Python\V3\lib\site-packages\pip (python 3.6)C:\>python3 -m pip install --upgrade tensorflowCollecting tensorflowCould not find a version that satisfies the requirement tensorflow (from versions: )No matching distribution found for tensorflow

while python 3.5 seems to install successfully. I would love to see a python3.6 version since they claim it should also work on python3.6.

Quoted :

"TensorFlow supports Python 3.5.x and 3.6.x on Windows. Note that Python 3 comes with the pip3 package manager, which is the program you'll use to install TensorFlow."

Source :https://www.tensorflow.org/install/install_windows

Python3.5 install :

Microsoft Windows [Version 10.0.16299.371](c) 2017 Microsoft Corporation. All rights reserved.C:\>python3 -m pip install --upgrade pipRequirement already up-to-date: pip in d:\python\v3\lib\site-packages (10.0.0)C:\>python3 -m pip -Vpip 10.0.0 from D:\Python\V3_5\lib\site-packages\pip (python 3.5.2)C:\>python3 -m pip install --upgrade tensorflowCollecting tensorflow  Downloading     ....    ....

I hope i am terrible wrong here but if not ring a alarm bell 😛

Edit:A couple of posts below someone pointed out that the following command would work and it did.

python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl

Strange pip is not working 🤔

answeredApr 18, 2018 at 21:02
YetAnotherDuck's user avatar

Comments

4

Following these steps allows you to install tensorflow and keras:

  1. Download Anaconda3-5.2.0 which comes with python 3.6 fromhttps://repo.anaconda.com/archive/

  2. Install Anaconda and open Anaconda Prompt and execute below commands

    conda install jupyter conda install scipypip install sklearnpip install msgpackpip install pandaspip install pandas-datareaderpip install matplotlib pip install pillowpip install requestspip install h5pypip install tensorflowpip install keras
Christopher Moore's user avatar
Christopher Moore
17.3k11 gold badges52 silver badges63 bronze badges
answeredDec 23, 2018 at 10:13
Vaibhav Sharma's user avatar

1 Comment

The question is about standard Python and just tensorflow.
4

Tensorflow DOES NOT support python versions after 3.8 as of when I'm writing this at least (December 2020). Use this:https://www.tensorflow.org/install to check what python versions it supports, I just spent hours looking through these answers, took me way too long to realise that.

answeredDec 28, 2020 at 18:22
Mof's user avatar

Comments

4

I was able to install tensorflow-macos and tensrflow-metal on my Mac

$ python -m pip install -U pip$ pip install tensorflow-macos$ pip install tensorflow-metal
answeredSep 30, 2022 at 7:55
PSN's user avatar

Comments

3

This worked for me with Python 2.7 on Mac OS X Yosemite 10.10.5:

sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Floern's user avatar
Floern
34k24 gold badges106 silver badges122 bronze badges
answeredMar 11, 2017 at 15:54
Amit's user avatar

Comments

3
  1. Start Command Prompt with Administrative Permission
  2. Enter following commandpython -m pip install --upgrade pip
  3. Next Enter commandpip install tensorflow
answeredJun 4, 2017 at 12:49
Croko's user avatar

1 Comment

error: Fatal error in launcher: Unable to create process using '"'
3

update 2019:for install the preview version of TensorFlow 2 in Google Colab you can use:

!wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64 -O cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb!dpkg -i cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb!apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub!apt-get update!apt-get install cuda!pip install tf-nightly-gpu-2.0-preview

and for install the TensorFlow 2 bye pip you can use:pip install tf-nightly-gpu-2.0-preview for GPU andpip install tf-nightly-2.0-previewfor CPU.

Cadoiz's user avatar
Cadoiz
1,7042 gold badges25 silver badges36 bronze badges
answeredJan 17, 2019 at 6:39
Farshid PirahanSiah's user avatar

1 Comment

Thank you for the reminder to try the nightly tensorflow (unstable) version. That worked for me.
3

I installed tensorflow on conda but didnt seem to work on windows but finally this command here works fine on cmd.

 python.exe -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
answeredJul 24, 2020 at 14:08
sauravjoshi23's user avatar

1 Comment

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorboard 2.12.3 requires protobuf>=3.19.6, but you have protobuf 3.1.0 which is incompatible.
3

if you tried the solutions above and didin't solve the problem, it can be because of version inconsistency.

I installed python 3.9 and i couldn't install tensorflow with pip.

And then I uninstalled 3.9, then installed 3.8.7 and success... the max version that tensorflow is supported by is 3.8.x (in 2021)so, check your python version is compatible or not with current tensorflow.

answeredJan 30, 2021 at 1:11
barismanco's user avatar

Comments

2

I was facing the same issue. I tried the following and it worked.installing for Mac OS X, anaconda python 2.7

pip uninstall tensorflowexport TF_BINARY_URL=<get the correct url from http://tflearn.org/installation/>pip install --upgrade $TF_BINARY_URL

Installed tensorflow-1.0.0

answeredMar 23, 2017 at 22:49
kavini's user avatar

Comments

Protected question. To answer this question, you need to have at least 10 reputation on this site (not counting theassociation bonus). The reputation requirement helps protect this question from spam and non-answer activity.