Reputation: 1136
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.
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
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:
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