-
Notifications
You must be signed in to change notification settings - Fork 873
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
Can't install on Python 3.11 #2849
Comments
3.11 is not officially supported at the moment as it is a bit new. We are working on it. |
Thanks for the information. I would like to add that the same problem was also present on my laptop which runs Fedora 36 (python 3.10). So, I am guessing that it will be first fixed for 3.10 and then for 3.11? |
@adosar in your specific case, it looks like you are using your system Python (i.e., one that comes from Fedora itself) to construct your virtual environment. To get around this issue, you need to install the development version of the Python package for Fedora, with something like This will then allow pip to compile the C-extensions that come with pymatgen (see below that we can also ask that these builds get made in the CI of this package, so that everyone on Linux can just install them without recompiling -- I've had no trouble building these wheels myself of pymatgen for Python 3.11 but as @shyuep suggests there maybe outstanding compatibility issues that I haven't run into). Another option would be to decouple your "science Python" from your system Python by using tools like conda, pyenv etc. to manage separate Python executables for each virtual environment -- people have many opinions on this and the "best tool" changes year on year, so just treat this as something you could consider investigating... This has made me notice that currently wheels are not being built for Linux on release. Is this intentional (@shyuep @janosh)? pymatgen/.github/workflows/test.yml Line 104 in 13a860a
|
I would've thought that simply adding |
For Fedora users: Installation had no problems. |
@ml-evs Ah, looks like because of the compiled C extensions in |
Now |
Great. Thanks, |
@shyuep Haven't tried it yet to |
Sure. |
I have tried it also in Fedora 37 with Python 3.11.2 and works flawlessly. Just |
@adosar Thanks for confirming. |
I am trying to install pymatgen on a clear virtual environment on Fedora 37.
python -m venv <virtual-environment-name>
source <virtual-environment-name>
pip install wheel
pip install pymatgen
But I get the error shown on the attached image.
The text was updated successfully, but these errors were encountered: