user6703592
user6703592

Reputation: 1136

python cannot install tensorflow

My PC is 64 bit and python version is 3.7.9. I installed tensorflow as following. Does anyone know how to solve it? Let me know if further information is needed. enter image description here

Edit:

I also tried anaconda as follow:

https://www.tutorialspoint.com/tensorflow/tensorflow_installation.htm

But the problem is that in anaconda prompt, I can import tensorflow. I use python in visual studio 2017. When I open python file in VS, it seems different with anaconda prompt. Do you know how to make it also work in VS?

Upvotes: 1

Views: 228

Answers (2)

William D. Irons
William D. Irons

Reputation: 2384

The version of Python your using is too new for the version of TensorFlow your using.

If you go here: https://pypi.org/project/tensorflow/1.13.1/, and look on the left hand side and scroll down to "Programming Language", you will see the latest python version on that list is Python 3.6.

That is the cause of error your getting. You can either:

  • Switch to Python 3.6 or
  • Use TensorFlow 1.14.0 or above which supports Python 3.7

Also make sure your using the 64-bit version of Python. TensorFlow will not install if you have the 32-bit version of Python installed.

Upvotes: 1

Hubert
Hubert

Reputation: 131

Could you try: pip install --upgrade tensorflow

Upvotes: 0

Related Questions