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

Unable to install torch==1.7.1 #23

Open
op1009 opened this issue Nov 9, 2023 · 3 comments
Open

Unable to install torch==1.7.1 #23

op1009 opened this issue Nov 9, 2023 · 3 comments

Comments

@op1009
Copy link

op1009 commented Nov 9, 2023

when doing pip install -r requirements.txt Error => Could not find a version that satisfies the requirement torch==1.7.1

After giving custom link from pytorch website pip install torch==1.7.1+cu92 torchvision==0.8.2+cu92 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html also it gives error as:

Looking in links: https://download.pytorch.org/whl/torch_stable.html ERROR: Could not find a version that satisfies the requirement torch==1.7.1+cpu (from versions: 1.11.0, 1.11.0+cpu, 1.11.0+cu102, 1.11.0+cu113, 1.11.0+cu115, 1.11.0+rocm4.3.1, 1.11.0+rocm4.5.2, 1.12.0, 1.12.0+cpu, 1.12.0+cu102, 1.12.0+cu113, 1.12.0+cu116, 1.12.0+rocm5.0, 1.12.0+rocm5.1.1, 1.12.1, 1.12.1+cpu, 1.12.1+cu102, 1.12.1+cu113, 1.12.1+cu116, 1.12.1+rocm5.0, 1.12.1+rocm5.1.1, 1.13.0, 1.13.0+cpu, 1.13.0+cu116, 1.13.0+cu117, 1.13.0+cu117.with.pypi.cudnn, 1.13.0+rocm5.1.1, 1.13.0+rocm5.2, 1.13.1, 1.13.1+cpu, 1.13.1+cu116, 1.13.1+cu117, 1.13.1+cu117.with.pypi.cudnn, 1.13.1+rocm5.1.1, 1.13.1+rocm5.2, 2.0.0, 2.0.0+cpu, 2.0.0+cpu.cxx11.abi, 2.0.0+cu117, 2.0.0+cu117.with.pypi.cudnn, 2.0.0+cu118, 2.0.0+rocm5.3, 2.0.0+rocm5.4.2, 2.0.1, 2.0.1+cpu, 2.0.1+cpu.cxx11.abi, 2.0.1+cu117, 2.0.1+cu117.with.pypi.cudnn, 2.0.1+cu118, 2.0.1+rocm5.3, 2.0.1+rocm5.4.2, 2.1.0, 2.1.0+cpu, 2.1.0+cpu.cxx11.abi, 2.1.0+cu118, 2.1.0+cu121, 2.1.0+cu121.with.pypi.cudnn, 2.1.0+rocm5.5, 2.1.0+rocm5.6)

after modifying torch==1.7.1 to torch in requirements.txt and re-installing everything it gives another error
Screenshot (6)

Please suggest solutions @ArminMasoumian

@ArminMasoumian
Copy link
Owner

The download links for PyTorch version 1.7.1 tailored to your CUDA model can be accessed at https://pytorch.org/get-started/previous-versions/#v171.

@op1009
Copy link
Author

op1009 commented Nov 17, 2023

Thanks for reply.
The solution you are suggesting, I have already tried that(mentioned in first bold line in my description above). But still error is coming ERROR: Could not find a version that satisfies the requirement torch==1.7.1+cu92.

@ArminMasoumian
Copy link
Owner

I'm uncertain about the specific issue, but there could be two potential reasons. First, ensure your Python version matches the required version. Second, check your proxy connection. Please visit this link to see if it provides a solution: Stack Overflow link.

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