Support Python 3.9 #44485
Support Python 3.9 #44485
Comments
|
We have not released anything for python3.9. Release process is as follows:
As we are already doing the 2.4 release, python3.9 support for TF will come in 2.5 release at the earliest. @ravikyram, @amahendrakar, @rmothukuru let's deduplicate to this issue all py39 requests/issues. I'll monitor this one and provide updates as we start adding support. |
…#1528) * Introduce a sieve for filtering out incompatible TensorFlow for Py3.9 * Python 3.9 support will come in 2.5 release at the earliest tensorflow/tensorflow#44485 (comment)
|
@mihaimaruseac, |
(from #40840 (comment)) The main issue is that we also have C++ code and we need the needed dependencies to also upgrade for their C++ code. By this time, likely most are solved, so 2.5 release will have py3.9 support. We should get py3.9 in nightly soon. |
|
So, all of our depdencies have a release for py3.9 but our |
|
I've built tf 2.4 for python 3.9.1 on windows 10 and ubuntu 18.04 and they work fine, no problem at all |
Curious to know how you did that since you cannot use it because of this “stupid” dependency check. Oh you mean you built it from source? If that’s so, would you mind sharing the commands/options you used? thanks! |
|
@willemavjc I can share my build from source setup. Win 10 and works with python 3.9.1, TF 2.4.
|
|
Sorry but AFAIK protobuf does not support Python 3.9 properly with their Linux wheels. See protocolbuffers/protobuf#7978. |
|
Ah, I think I also left out a few bits here...
This makes it easier to also manage the protobuf installation separately. At least for Windows there is an unofficial Python 3.9 protobuf wheel at https://www.lfd.uci.edu/~gohlke/pythonlibs/#protobuf (not the latest but good enough, 3.12.3, ). |
|
protobuf and gast are current blockers to have 100% tests passing |
gast 0.4.0 seems to support Python 3.9. Haven't tested it yet though. |
|
@willemavjc I've built tensorflow from source of course cuda 11.2 |
It does, but I think @mdanatg has a change to update and there are a few things that need to change to make all tests pass. |
|
The change to upgrade to 0.4 is ready and just needs one final approval. We should be able to resolve this shortly after the approver is back in office, on Jan 5. |
This kind of info is related, more in general, to a quite old open topic (since 2016) as you can see #46039 (comment) And this specific issue was exposed from October (#44146) so we had two months to be exposed to concurrent contributions conflicts. |
|
can you share the generated tensorflow-2.4.0-cp39-cp39-win_amd64.whl file? |
|
When building for mac Big Sur it seems that you need to rename the whl from tensorflow-2.4.0-cp39-cp39-macosx_11_0_x86_64.whl to tensorflow-2.4.0-cp39-cp39-macosx_10_16_x86_64.whl, but after installing gast==0.4, hypy==3.1.0 and grpcio==1.34.0 everything is working perfectly (so far ;)) |
|
Any progress here? I would really appreciate being able to use Python 3.9. |
|
Not yet. We should support py3.9 in nightly in about a few weeks. |
|
Python 3.9.2 release is scheduled to happen in two weeks according to https://www.python.org/dev/peps/pep-0596 Perhaps work should start now on testing against Python 3.10a4 so the community does not face yet another 7-month delay. |
Python 3.9 is released at October 5th, 2020. Or are you referring to something else by “7-month delay”? |
|
TF has a large number of dependencies. We cannot make progress until all dependencies are updated. Right now protobuf is still lacking a |
|
We have to wait until protocolbuffers/protobuf#8121 lands and a new protobuf containing it (or similar) is released. |
|
Now that protocolbuffers/protobuf#8121 landed, we just need to wait for the release. |
Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template
System information
Describe the feature and the current behavior/state.
TensorFlow should be supported on Python 3.9.
Will this change the current api? How? Significant changes will likely need to be made.
Who will benefit with this feature?
Anyone on Python 3.9
Any Other info.
The text was updated successfully, but these errors were encountered: