Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensorflow 1.x not available for python 3.8 #39768

Closed
cboettig opened this issue May 21, 2020 · 9 comments
Closed

Tensorflow 1.x not available for python 3.8 #39768

cboettig opened this issue May 21, 2020 · 9 comments
Assignees
Labels
stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 1.15 for issues seen on TF 1.15 type:build/install Build and install issues

Comments

@cboettig
Copy link

System information

  • OS Platform and Distribution Ubuntu 20.04 (LTS)
  • TensorFlow installed from (source or binary): binary
  • TensorFlow version: 1.15
  • Python version: 3.8.2
  • Installed using virtualenv? pip? conda?: pip
  • Bazel version (if compiling from source): N/A
  • GCC/Compiler version (if compiling from source): N/A
  • CUDA/cuDNN version: N/A
  • GPU model and memory: N/A

Describe the problem
It seems that tensorflow 1.15.2 binaries are not available for Python 3.8 at this time. This is at odds with the directions at https://www.tensorflow.org/install/pip state the system requirements for tensorflow==1.15 are:

  • Python 3.5–3.8
  • pip 19.0 or later (requires manylinux2010 support)
  • Ubuntu 16.04 or later (64-bit)

Given that Ubuntu 20.04 is now the current LTS release and it has Python 3.8, it would be great if we could still run Tensorflow 1.x on that platform for as long as Tensorflow 1.x isn't deprecated.

Provide the exact sequence of commands / steps that you executed before running into the problem

Just follow the exact instructions on https://www.tensorflow.org/install/pip for current Ubuntu release. Thanks!

@cboettig cboettig added the type:build/install Build and install issues label May 21, 2020
@Saduf2019 Saduf2019 added the TF 1.15 for issues seen on TF 1.15 label May 22, 2020
@Saduf2019
Copy link
Contributor

@cboettig
TensorFlow 1.x even 2.1 does not support Python 3.8. Instead could you please try installing TensorFlow v2.2.0rc3 using the following command. or use Python3.7, (3.6, 3.5 also work) for that.

pip install tensorflow==2.2.0rc3

please refer to this comment and this

@Saduf2019 Saduf2019 added stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues labels May 22, 2020
@mihaimaruseac
Copy link
Collaborator

mihaimaruseac commented May 22, 2020

We don't add new versions of Python for old releases. If you want to use TF 1.15, you have to use Python 3.7 or lower. If you want to use Python 3.8 you have to use TF 2.2 or newer.

@google-ml-butler
Copy link

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

@cboettig
Copy link
Author

@mihaimaruseac Thank you very much for clarifying that. Can we convert this bug report into a documentation bug report? The current documentation states otherwise. Specifically, https://www.tensorflow.org/install/pip says that you support Python 3.5 - 3.8, (right below the instruction for installing 1.15) and does not indicate this is not true of 1.15.

I do rely on the current TF release whenever possible. As you surely know, many packages (in my most recent case, stable-baselines) still run only on 1.x version, so upgrading is not always possible. Therefore I'm glad you still provide a 1.5 version, and I can revert to an older python version to take advantage of it. Thanks for the fast reply, very impressive on a project of this scale!

@mihaimaruseac
Copy link
Collaborator

Made tensorflow/docs#1581 to update documentation. Thank you for the suggestion.

@hafez-ahmad
Copy link

pip install tensorflow
Downloading tensorflow-2.3.0-cp38-cp38-win_amd64.whl (342.5 MB)
this is not working for python 3.8 . what can I do ? please

@mihaimaruseac
Copy link
Collaborator

@hafez-ahmad this issue is not the right place for that, you should have opened a new issue, filling in issue template.

I gather you are on Windows. Is your python 64 bits? Did you install the latest MSCV redistributable? When you installed Python, did you get it from the Python website or from Windows Marketplace?

@hafez-ahmad
Copy link

Yesterday,I installed python 3.8. I have solved it.
I just open cmd as Administrator. then, I have installed tensorflow in python 3.8.

@mirekphd

This comment has been minimized.

@tensorflow tensorflow locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 1.15 for issues seen on TF 1.15 type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

5 participants