r/pytorch • u/AntDX316 • Oct 19 '24
Installed Python 3.13.0 now I cannot install Pytorch?
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
I checked someone elses post of 2020 somewhere else and they said that will happen when your python version is too new.
There needs to be a real-time way for you guys to auto-update the compatibility for the latest version with even just a webhook.
edit: seems like 3.11 is the latest supported version?
edit2: the importance of using venv is shown to be important
2
u/MMAgeezer Oct 19 '24 edited Oct 19 '24
Python 3.12 is already supported, and 3.13 is nearly there but only officially supported on Linux for Pytorch 2.5.0. They also have 3.13 support on Mac via the nightlies. You can track progress on their GitHub repo:
https://github.com/pytorch/pytorch/issues/130249
The goal for 2.6.0 is full Python 3.13 support.
-2
u/AntDX316 Oct 19 '24
but there is zero diffrence between using 3.11.9 and 3.12?
2
u/MMAgeezer Oct 19 '24
What do you mean? Are you stating that Python 3.12 Vs 3.11 have the same features, or are you asking if Pytorch loses functionality on 3.12? If it's the former: look at the docs, and if it's the latter then the answer is no.
2
u/AntDX316 Oct 24 '24
Based on the search results, here are the key differences and considerations regarding PyTorch usage with Python 3.11.9 vs 3.12:
Compatibility Issues:
- PyTorch currently does not officially support Python 3.12 [4]
- Python 3.11.x (including 3.11.9) is the latest officially supported version for PyTorch [2]
2. Installation:
- You can successfully install and run PyTorch on Python 3.11.x without issues
- Attempting to install PyTorch on Python 3.12 will result in compatibility errors [2], [4]
3. Building from Source:
- While PyTorch officially supports Python 3.8 through 3.11, you might be able to build PyTorch from source for different Python versions, but this isn't guaranteed to work with 3.12 [3]
4. Underlying Reasons:
- The lack of support for Python 3.12 is not unique to PyTorch; other deep learning frameworks like TensorFlow also don't support it yet
- This is due to significant changes in Python 3.12 that affect deep learning frameworks' implementations [1]
Recommendation:
- If you're working with PyTorch, it's recommended to stick with Python 3.11.x (including 3.11.9) for now
- Wait for official PyTorch support before upgrading to Python 3.12
- If you absolutely need to use Python 3.12, you might need to consider alternative deep learning frameworks that support it, or wait for PyTorch to add support in future releases
Let me check for any recent updates about PyTorch support for Python 3.12.
2
u/MMAgeezer Oct 24 '24
ChatGPT, or whatever LLM you used to generate that is wrong.
Python 3.12 is supported: https://github.com/pytorch/pytorch/blob/main/RELEASE.md
9
u/InstructionMost3349 Oct 19 '24
Why ppl don't understand that library dependencies don't get updated as soon as new python version dropsðŸ˜
1
u/IIIIlllIIIIIlllII Jan 09 '25
Because every other programming language is backwards compatible across minor revisions. Its really fucking stupid
1
u/quantifried_bananas Jan 28 '25
Agreed. Python packages have always been—and continue to be—fucked up. Any other language, no problems with backwards compatibility, it just works. With Python, you have to change your whole system around and then arrange chicken bones in the perfect configuration just to get backwards compatibility.
1
1
u/Jackuarren Aug 19 '25 edited Aug 19 '25
as soon - not.
10 months later though?.... actually it still not.1
Feb 02 '25
[removed] — view removed comment
1
u/InstructionMost3349 Feb 03 '25
Probably skill issue 😂. Pytorch is already compatible with python 3.13 you can check release announcement of Pytorch in GitHub.
1
u/Jackuarren Aug 19 '25 edited Aug 19 '25
It still can't be just pip installed. 3.13 is not supported on windows.
Actually you know what, I think I need to check it again.
5
u/TuneReasonable8869 Oct 19 '24
You do understand that every new version of python could break a library right?
3
u/Capable-Package6835 Oct 19 '24
Automatic update for an item as important as compatibility sounds like a bad idea.