#Installing -- PyTorch error
4 messages · Page 1 of 1 (latest)
Based on the error message you provided, it seems that the version of Python you're using (3.12) is not compatible with the version of PyTorch you're trying to install (2.1.2). The error message indicates that PyTorch 2.1.2 requires a Python version that is greater than or equal to 3.7 but less than 3.11.
One solution to this issue, as suggested in the GitHub issue #2232 (https://github.com/invoke-ai/InvokeAI/issues/2232), is to downgrade your Python version to one that is compatible with the PyTorch version you're trying to install. For instance, Python 3.10.9 was mentioned as a version that worked for one user.
Please note that you can have multiple versions of Python installed on your system. You just need to specify the version you want to use for your project. If you're using an Integrated Development Environment (IDE) like Visual Studio Code, you can usually specify the Python interpreter (and hence the version) in the settings or at the bottom status bar.
If downgrading Python is not an option, you might want to check if there's a newer version of PyTorch that is compatible with Python 3.12.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@tranquil skiff kapa.ai is still learning and improving, please let us know how it did by reacting below
You’ll need Python 3.10 or 3.11