I tried to setup tensorflow for python version 3.7.1 which was not supported and ended up wasting half Sunday.
I want to know which versions of python does tensorflow supports?
From the official website:
Requires Python 3.4, 3.5, or 3.6
Edit:
It looks like Python 3.7 is now supported with TensorFlow 1.13+
Therefore, requires Python 3.4+ for TensorFlow 1.13+
As of 11 Dec I found this link: https://www.tensorflow.org/install/source_windows#cpu
Windows CPU:
Version
Python version
tensorflow-2.3.0
3.5-3.8
tensorflow-2.2.0
3.5-3.8
tensorflow-2.1.0
3.5-3.7
tensorflow-2.0.0
3.5-3.7
Tensorflow, for now only works with Python 3.6, 3.7 support is still in active development, make sure to install python 3.6 and try to set it up again, it should work
Sorry i am only posting the question and i am only giving the answer for it.
TENSORFLOW IS NOT SUPPORTED FOR PYTHON 3.7.X.
Please do not waste time even on trying also
It will throw an error on "pywrap_internal.py"
From Anaconda create conda environment and install tensorflow package
Try importing it.
Hope it helps.
Related
I saw on this tweet that Google Colab move to Python 3.7 on February 2021. As of today however (January 2022), Python 3.10 is out, but Colab still runs Python 3.7.
My (voluntarily) naive take is that this is quite a significant lag.
Why are they not at least on Python 3.8 or even 3.9?
Is it simply to make sure that some compatibility criteria are met?
The only reason is they want to have the most compatible version of Python worldwide. Based on the Python Readiness report (Python 3.7 Readiness), version 3.7 supports almost 80.6% of the most used packages so far. Still, this coverage is 78.3% for version 3.8, 70.6% for version 3.9 and 49.7% for version 3.10 (as of March 29, 2022).
Frankly, if Python 3.6 was not in its EOL, they still used this version today. Lucky us, python.org decide to rid of versions below 3.7. 😊
On the other hand, You can update the Python version in your Colab by running some Linux commands in the notebook. But the problem is that whenever you start a new notebook, google ignores the updates and will turn back to the original version.
The best action that google can take is to have options to select the python version. Because of this, I am not using Colab in most cases, especially when teaching Python to my students.
Update (January 12, 2023):
Now google Colaboratory supports Python 3.8.16. After a long time, we see some improvement. But it's still outdated because the current version is 3.11.1.
Python Readiness report says 80.8% of most used packages support Python 3.8, and 30.6% support 3.11. But we know it comes from info on PyPi. In practice, this support is far more than what the package maintainer says in the repository. Many packages support 3.11, but they still mention the lower version of Python. The reason is the maintainer didn't have a chance to check and update their production yet.
You can use Python 3.10 with this notebook.
I am new to programming and I'm attempting to run pypy 3.7 on windows for a project and have had zero success. My partner found
these instructions but following them didn't seem to work. Is the problem with the prompt, installation, python, anything else?? Any and all help would be very appreciated, thank you.
You may have an incompatible Python version. PyPy doesn't support the latest version of Python 3.5, so you may need to install an earlier version of Python.
Also follow this thread: How to install Pypy for Python 3.5?
Or where is there a published list of the supported versions of Python for Visual Studio Code?
Also if one's machine's OS makes a difference that would be helpful to know as well.
According to their documentation, if you link to what "a supported Python", is, the requirements are "whichever version of Python you want to use". And they explicitly include:
The built-in Python installation on Linux.
An installation through Homebrew on macOS using brew install python3 (the system install of Python on macOS is not supported).
A download from python.org.
A download from Anaconda (for data science purposes).
Of course python.org has versions all the way back to 0.9.1, although I suspect anything older than the 2.0.1 in the main downloads doesn't really count.
More realistically, they probably only test with current Python versions, which as of right now means 2.7, 3.5, 3.6, and maybe 3.7 prereleases. If you wanted to use 2.5 or 3.3, you might well get syntax highlighting and error fly-checking based on 2.7 or 3.5 grammar, etc. But actually running your code should still work.
Also, if you're on a Mac and thinking of Homebrew, it's worth noting that brew install python3 will give you an error; the package is just called python now, and you install python for 3.x and python#2 for 2.x.
Microsoft's Python Extension for VS Code actually let you select an interpreter from a list of detected or manually set environments (CMD-Shift-P/Ctrl-Shift-P -> Python: Select Interpreter), so it should work with latest version of any interpreter, as long as is supported by the OS (remember that VS Code and its extensions are hosted in Electron). Source
So, I've looked at several different sources, but I cannot find anything that has worked. At first, I got "no module called tensorflow", so I tried installing again (on windows 64-bit), and tried both anaconda and also pip, using the following wheel: https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl, and yes I used "--ignore-installed". Both said something along the lines of "this wheel is not supported on the platform". I hate to bring up a topic which has already been brought up, but I've looked through stack overflow and tried out all the proposed solutions, and none solved the issue. I'd really appreciate any help, I've been stuck on this for a few days. Here are some specifications that might give some insight. Python is 3.6 64-bit, anaconda 4.3 64-bit, my system is obviously 64-bit. Thanks in advance!
The wheel you used is for Python 3.5 64-bit, it will not work with Python 3.6. Either download the Python 3.6 version or use it with Python 3.5.
The wheel's filename holds this information, the cp35 part means Python 3.5 (CPython, actually, but that's the ordinary Python you use), win means Windows and amd64 means 64 bit.
I wanted to use mockito with python version 2.6 & 2.7.
I have downloaded the latest version of mockito package and tried to use it. But I am unable to use it. The package is imported successfully but when I am using any function it is failing.
Do you have any idea about the compatibility of mockito with python version?
I could not find any documentation around it. I mostly saw that it with python 3.0.
Help me with your suggestions or help around this?
This link shows that mockito was tested with at least the following Python versions:
Python 2.4.6
Python 2.5.4
Python 2.6.1
Python 2.7
Python 3.1.2