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

[Python-3.10] Not Being Able to install PyTorch #67669

Closed
nivedvenugopalan opened this issue Nov 2, 2021 · 11 comments
Closed

[Python-3.10] Not Being Able to install PyTorch #67669

nivedvenugopalan opened this issue Nov 2, 2021 · 11 comments
Labels
module: binaries Anything related to official binaries that we release to users triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@nivedvenugopalan
Copy link

nivedvenugopalan commented Nov 2, 2021

When installing PyTorch using the following command:



pip3 install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio===0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html


I got this error:

Looking in links: https://download.pytorch.org/whl/cu113/torch_stable.html ERROR: Could not find a version that satisfies the requirement torch==1.10.0+cu113 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) ERROR: No matching distribution found for torch==1.10.0+cu113

cc @ezyang @seemethere @malfet

@MaltheG
Copy link

MaltheG commented Nov 2, 2021

I am getting the same error.

I am using python 3.10 and pip 21.3.1 on Windows 10

@mruberry mruberry added module: build Build system issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Nov 2, 2021
@MaltheG
Copy link

MaltheG commented Nov 2, 2021

I fixed the issue by downgrading to python version 3.9.7. I guess pytorch isn't upgraded for 3.10 yet

@malfet malfet added module: binaries Anything related to official binaries that we release to users and removed module: build Build system issues labels Nov 2, 2021
@malfet
Copy link
Contributor

malfet commented Nov 2, 2021

Removing "module: build" as it has nothing to do with building PyTorch and closing as duplicate of #66424

PyTorch builds again python-3.10 are not yet supported for 1.10

@malfet malfet closed this as completed Nov 2, 2021
@malfet malfet changed the title Not Being Able to Install PyTorch [Python-3.10Not Being Able to install PyTorch Nov 2, 2021
@malfet malfet changed the title [Python-3.10Not Being Able to install PyTorch [Python-3.10] Not Being Able to install PyTorch Nov 2, 2021
@famzah
Copy link

famzah commented Nov 13, 2021

❌ It didn't work with Python 3.6 on Windows 10.
✔️ It works with Python 3.9 on Windows 10.

@alik604
Copy link

alik604 commented Dec 21, 2021

I hope they bother to update to fix their site. It clearly implies 3.10 was fine, I checked before downloading python. I just did a fresh windows install.

Currently, PyTorch on Windows only supports Python 3.x; Python 2.x is not supported.

@Bengt
Copy link

Bengt commented Jan 4, 2022

I fixed the issue by downgrading to python version 3.9.7. I guess pytorch isn't upgraded for 3.10 yet

@MaltheG That isn't a fix, but merely a workaround. PyTorch should still support Python 3.10. You may be able to downgrade your interpreter, but others might not.

@agusavior
Copy link

I'm using python 3.9 and I get this error

@cpoptic
Copy link

cpoptic commented Jan 19, 2022

Currently, PyTorch on Windows only supports Python 3.x; Python 2.x is not supported.

Looks like in the last 29 days maintainers updated the PyTorch website to exclude Python 3.10:

Currently, PyTorch on Windows only supports Python 3.7-3.9; Python 2.x is not supported.

@leonekwolfik
Copy link

Same error:

ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

Using Python 3.10.2 and try to install PyTorch 1.10.2

Try on macOS 12.2 and Windows 10.

@malfet
Copy link
Contributor

malfet commented Jan 31, 2022

PyTorch-1.10.x was not not built/uploaded with python-3.10 support. Nightlies and PyTorch-1.11 will support it.

@Alpha787
Copy link

Alpha787 commented Feb 23, 2022

Guys I posted a solution for this problem.
https://stackoverflow.com/questions/69826153/cant-install-pytorch-in-pycharm-terminal-python-3-10-win-10/71235282#71235282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: binaries Anything related to official binaries that we release to users triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests