Skip to content

Support Python 3.9 #44485

Closed
Closed

Description

@park-junha

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

  • TensorFlow version (you are using): 2.3.1
  • Are you willing to contribute it (Yes/No): No (willing to do trivial patches)

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.

Activity

  1. added
    type:build/install
    on Nov 2, 2020
  2. mihaimaruseac commented on Nov 2, 2020

    @mihaimaruseac
    Contributor

    We have not released anything for python3.9.

    Release process is as follows:

    1. Ensure all of our dependencies support python3.9 (not yet there)
    2. Ensure our code works with all these dependencies on all supported versions of python (at the moment, at least gast needs additional support work).
    3. Release nightly version supporting the new python version
    4. Release a full release.

    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.

  3. rmothukuru commented on Nov 17, 2020

    @rmothukuru
    Contributor
  4. added
    stat:awaiting tensorflower
    on Nov 17, 2020
  5. mihaimaruseac commented on Nov 18, 2020

    @mihaimaruseac
    Contributor

    I may be wrong, but I believe this is the case:

    python3.8 -m pipdeptree -p tensorflow | grep "^  -" | sed "s/  - //" | sed "s/ \[.*]//" | xargs python3.9 -m pip install
    

    which is essentially

    python3.9 -m pip install absl-py astunparse flatbuffers gast google-pasta grpcio h5py keras-preprocessing numpy opt-einsum protobuf six tensorboard tensorflow-estimator termcolor typing-extensions wheel wrapt
    

    works fine for me. Am I missing anything?

    (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.

  6. removed
    stat:awaiting tensorflower
    on Nov 20, 2020
  7. added
    stat:awaiting tensorflower
    on Nov 22, 2020
  8. removed their assignment
    on Nov 24, 2020
  9. 79 remaining items

  10. mihaimaruseac commented on Mar 11, 2021

    @mihaimaruseac
    Contributor

    The largest part of the ramp up is because of upstream dependencies. TF cannot build until they can build with the new version of Python. In particular, numpy, protobuf, grpc are the main delayers.

  11. ShyamSundhar1411 commented on Mar 14, 2021

    @ShyamSundhar1411

    But tf nightly is not getting imported . I am getting ModuleNotFoundError

  12. mihaimaruseac commented on Mar 15, 2021

    @mihaimaruseac
    Contributor

    @ShyamSundhar1411 this looks like a different issue. Make sure you use the same python as the one used to do pip install. Recommendation is to use python -m pip install instead of pip install.

    If the above does not fix, please open a new issue and fill in issue template and give a full description of the error you are seeing. Also, give output of both python -m pip install

  13. cclauss commented on Mar 15, 2021

    @cclauss
    Contributor

    Explicit is better than implicit...python3.9 -m pip install xyz

  14. unpinned this issue on Mar 15, 2021
  15. staticdev commented on Apr 6, 2021

    @staticdev

    @mihaimaruseac this is marked for TF 2.5 but there is no mention of it on the current release notes.

  16. mihaimaruseac commented on Apr 11, 2021

    @mihaimaruseac
    Contributor

    RC0 files already contain Py3.9 wheels.

    We'll update the release notes, it seems we don't always mention support for new versions of Python in there.

  17. cclauss commented on May 17, 2021

    @cclauss
    Contributor

    I think this is fixed now.

  18. Nizarazo commented on May 25, 2021

    @Nizarazo

    Is Keras module that exists in tensorflow supported in python 3.9?

  19. felixdivo commented on May 26, 2021

    @felixdivo

    @mihaimaruseac Seems like this issue can be closed.

  20. google-ml-butler commented on Jun 8, 2021

    @google-ml-butler

    Are you satisfied with the resolution of your issue?
    Yes
    No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

TF 2.5type:build/installtype:feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions