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

Trouble Installing the Required PyTorch Version #56

Open
joshua-beck-0908 opened this issue Sep 21, 2024 · 3 comments
Open

Trouble Installing the Required PyTorch Version #56

joshua-beck-0908 opened this issue Sep 21, 2024 · 3 comments

Comments

@joshua-beck-0908
Copy link

I can't install the prerequisites required to run this model.

I got the following error when I tried to install them with pip install -r requirements.txt

ERROR: Could not find a version that satisfies the requirement torch==1.13.1 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1)
ERROR: No matching distribution found for torch==1.13.1

Am I doing something wrong here?
It seems Python 3.12 cannot install such an old version of PyTorch from pip.

Can a more modern version be used? Or do I need to do some manual installation process?
If so, perhaps the instructions could be updated to reflect this.

Thanks,
Joshua

@Dimitris-STAT
Copy link

Dimitris-STAT commented Sep 22, 2024

I was able to run the google colab demo with:
Python 3.10.12, the requirements.txt and some extra manual installing:

pip install scikit_learn==1.2.2
pip install numpy==2.0.0
pip install bigframes==1.17.0

If you are running on local gpu/cpu it could work with a virtual env.

@joshua-beck-0908
Copy link
Author

Yeah, that seems to work.

A little tricky when I'm running Ubuntu 24.04, which ships with Python 3.12 out of the box!

Had to bite the bullet and delete then venv; then reinstall everything to a new venv with Python 3.10 from the deadsnakes PPA.

Would've been nice to know that beforehand, but nevertheless Tango seems to work now.

I'll generate myself a round of applause. 😛

@Dimitris-STAT
Copy link

Hahaha, Nice one, happy to help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants