-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[MNT]: install on Python 3.12.0b3 #26161
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
Comments
I get
|
Try using
you may have to manually install some additional dependencies, but you won't have to deal with a background environment. |
This makes it go much further: python -m pip install setuptools pybind11 wheel
python -m pip install -v matplotlib --no-build-isolation Still, it gives (among others)
|
We do not directly depend or use mesonpy so I am not sure why you need it...maybe kiwisolver uses it? |
ContourPy uses
instead. Using What I would try is:
before
|
Okay, I guess I will have to wait until a bunch of other projects fix their setup routines for Python 3.12 or make wheels available. For |
Very sensible! For completeness, I have just added Github Action runs for |
I am going to close this as we are able to install Matplotlib on the CPython betas (and the CPython main branch) in other contexts (locally for me, the fedora py312 rebuilds, the CI from contourpy). This looks like build issues on windows, specifically in the binary-wheel packaging ecosystem, for some of our upstream dependencies. |
Why close the issue if Why attach this issue to the |
@cclauss python 3.12 is not released yet. If you want to install Matplotlib with 3.12, you will have to do so manually (https://matplotlib.org/stable/users/installing/index.html#installing-from-source should work). |
I can also add that we now do run 3.12-tests as part of the regular CI, so we are quite confident that it is possible to install the main branch on 3.12 from source. There are also nightly wheels published for 3.12 that can be installed with pip: https://matplotlib.org/stable/users/installing/index.html#installing-a-nightly-build |
I was looking for something I could put in a %
|
If you are having troubles installing release candidate based packages, please discuss at https://discourse.matplotlib.org. We don't officially support our install toolchain for pre-release candidates, so this isn't appropriate for our bug tracker. However, if you go to discourse, someone may be able to point you in the right direction. |
This is an issue with pip defaulting to build things in a temporary environment. The new environment will not have numpy installed to it will try to build a release version of numpy which will fail. Use If you are interested in building default branches of everything please have a look at https://github.com/tacaswell/build_the_world For a long discussion of the general issues with the pip-wheel ecosystem (that I think this is one aspect of) see https://pypackaging-native.github.io |
Summary
pip install matplotlib
fails on Python 3.12.0b3, see pypa/setuptools#3935. This used to be blocked on numpy/numpy#23808, but that is now fixed:pip install https://anaconda.org/scientific-python-nightly-wheels/numpy/2.0.0.dev0/download/numpy-2.0.0.dev0-cp312-cp312-win_amd64.whl
works on Windows to install numpy 2.0.0.dev0. However, even then installation of matplotlib still fails.Is there a way to install matplotlib on Python 3.12 betas?
Proposed fix
No response
The text was updated successfully, but these errors were encountered: