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

pip fails to install dependencies on Ubuntu 20.10 #14

Open
sbrl opened this issue May 16, 2021 · 3 comments
Open

pip fails to install dependencies on Ubuntu 20.10 #14

sbrl opened this issue May 16, 2021 · 3 comments
Assignees
Labels
dependencies Pull requests that update a dependency file

Comments

@sbrl
Copy link

sbrl commented May 16, 2021

If I run pip3 install -r requirements.txt on Ubuntu 20.10, I get the following error message:

ERROR: Could not find a version that satisfies the requirement tensorflow==1.9.0 (from -r requirement.txt (line 61)) (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0, 2.4.1, 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0)
ERROR: No matching distribution found for tensorflow==1.9.0 (from -r requirement.txt (line 61))

System details:

$ uname -a
Linux DEVICE_NAME 5.8.0-50-generic #56-Ubuntu SMP Mon Apr 12 17:18:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ python --version
Python 3.8.6
$ pip --version
pip 20.1.1
@HughKu
Copy link
Owner

HughKu commented Jun 10, 2021

@sbrl Sorry for the late reply.

Python 3.8 comes as the default in Ubuntu 20.04 and as pointed out here in Tensorflow's official document: Python 3.8 support requires TensorFlow 2.2 or later.

You might wanna install python version which supports tensorflow 1.9 or port this repo to support tensorflow 2.2 up.

@HughKu HughKu self-assigned this Jun 10, 2021
@HughKu HughKu added the dependencies Pull requests that update a dependency file label Jun 10, 2021
@sbrl
Copy link
Author

sbrl commented Jun 19, 2021

Ah, I suspected that would be the case. I can't actually install an older version of Python very easily on Ubuntu. Hrm, I'm not sure where to start with porting this to a later version of Tensorflow for Python - my experience is mostly with Tensorflow.js (for Javascript). I've heard that the differences between Tensorflow 1.x and 2.x are quite extensive.

@pattontim
Copy link

pattontim commented Apr 21, 2022

The current dependency deltas to run with tensor 1.X and install with python 3.7. Python 3.6 didn't work because some packages were no longer served (?)

absl-py==0.4 attrs==19.2.0 gast==0.2.2 MarkupSafe==1.1.1 numpy==1.16.1 protobuf==3.6.1 tensorboard==1.13.0 tensorflow==1.13.1 Twisted==20.3.0

I won't push since 3.8+ is now the stable version. Upgrade setuptools >= 56.0.0. You may need to use a prepackaged Twisted if you get C++ build errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

3 participants