Does Tensorflow support Python 3.8.5? - python

I was just looking into Tensorflow for Python, and they say they support python version 3.5-3.8. What I can't understand is, does "3.8" mean strictly 3.8.0 OR 3.8.x(so 3.8.5 works)?
I know it can vary for different software.
I just want to make sure that IF 3.8.5 is supported, that I use that since it's a newer version.
Thanks in advance!

Yes, it does. I'm on Python 3.8.5 and using tensorflow==2.3.0.
Usually when a version is given as "3.5-3.8", it includes the patch versions as well. (Sometimes there could be issues that pop up but it's intended to include all patch version of the 'from' & 'to', inclusive.)

I would think it works in 3.8.5, but it would be safer to use 3.8.0.

Related

Using older version of python with Py-Script

Would anybody know how to change the version I use in Py-Script? Currently my Py-Script is using python 3.10, but I would like to be able to use python 3.6.
I had python 3.10 and 3.6 installed, so i tried removing 3.10, but that didn't work, as I also expected, but other than that, I have no clue how to and have had no luck finding any information on the topic online.
I'm quite new to programming, so any help would be greatly appreciated!
You cannot easily change the Python version. Python is included with Pyodide which PyScript loads. Changing the version would require rebuilding Pyodide.
Note: I am not sure if it would be possible to use vanilla Python 3.6 with the current version of Pyodide.
Improve your code to work with Pyodide's bundled version of Python.

Are python 3.6.9 and python 3.7.4 compatible?

My friend and I are working on a project. We both setup our vitualenvs but I use python 3.6.9 while my friend is using python 3.7.4. Will this cause issues during development?
Will this cause issues during development?
It depends. If you agree to stick to the features that are available in 3.6 it will probably be fine.
But it means for example you can't use dataclasses, and you'd have to be careful when using asyncio.
I would advise you both to use the Python documentation for 3.6. That would lessen the chance of introducing an incompatible feature.
You may want to be bit cautious and refer to
https://www.python.org/dev/peps/pep-0387/

Which version of python is supported in Tensorflow?

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.

What Python 3 version for my Django project

I will try to port my Python 2.7 with Django to Python 3. But now my question is what version is the most stable one today? I've heard people use 3.2 and 3.4 and recommend it. But now I'm asking you guys.
What version is the most stable one today?
If you go to their downloads page, you will find the following statement (my emphasis):
We recommend using the latest version of Python 3 [...]
I've been using Python 3.4.3+ in a Django 1.8.2 project without issues and I don't see why you should run into problems here.
However, if you do run into issues, you should file a bug.
What version is the most stable one today?
Whatever version shows up as the recommended download in the python homepage should be considered stable. If that happens to be v3.5, then you should use that.
Python's version are quite stable, but you have to check is virtualenv on your OS is handled already by particular Python's version eg. 3.5.0 is not yet prepared for it. I recommend you 3.4.x, which I use on my own without any problems.
You may check for 'What Python version can I use with Django?' in official documentation here and here faq which lists which Python version is supported to which Django version

Is it safe to replace MacOS X default Python interpreter?

I have the default Python 2.6.1 installed as /usr/bin/python and Python 3.1.2 installed in /usr/local/bin/python3.1. Considering that I use only 3.x syntax, is it safe to replace the default interpreter (2.6) with the 3.1 one (python-config included) using symlinks (and removing old Python binary)? Or is the system relying on the 2.x version for some purpose I don't know?
If you're only using Python 3, start your scripts with:
#! /usr/bin/env python3.1
And you'll be using the right version, without doinking the system about.
edit: BTW this idea is suggested by the Python docs. Each script will be running the version of Python they depend on. Since Python 3 is not backward compatible, it seems dangerous to be replacing the Python executable with one that will break scripts other utilities may rely on.
You can not safely replace the system supplied python. I cannot find a Mac-specific reference for you... but some recent Python versions are not backwards compatible... Many scripts made dependent on an older version of Python will not run on an upgraded python. OS X Comes with Python pre-installed because it has dependencies on it.
Try using VirtualEnv instead.
Update: Just came across python-select from macports which may solve your problem.
Don't replace / remove any binaries unless you are in dire need for storage. In that case too, the mileage is very little in removing them.
You can simply make 3.1 as default with :
defaults write com.apple.versioner.python Version 3.1
There are other ways to ensure that you use 3.1 by default, I have not used them though.
export VERSIONER_PYTHON_VERSION=3.1

Categories