Title: [Bug]: install in development mode fails · Issue #30038 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: install in development mode fails · Issue #30038 · matplotlib/matplotlib
X Title: [Bug]: install in development mode fails · Issue #30038 · matplotlib/matplotlib
Description: Bug summary I'm trying to install matplotlib in development mode for a PR, and I'm using this for installing it in dev mode (from here): python -m pip install --verbose --no-build-isolation --editable ".[dev]" I've tried all the basic st...
Open Graph Description: Bug summary I'm trying to install matplotlib in development mode for a PR, and I'm using this for installing it in dev mode (from here): python -m pip install --verbose --no-build-isolation --edita...
X Description: Bug summary I'm trying to install matplotlib in development mode for a PR, and I'm using this for installing it in dev mode (from here): python -m pip install --verbose --no-build-isolation...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30038
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: install in development mode fails","articleBody":"### Bug summary\n\nI'm trying to install matplotlib in development mode for a PR, and I'm using this for installing it in dev mode (from [here](https://matplotlib.org/devdocs/devel/development_setup.html#install-matplotlib-in-editable-mode)):\n\n```bash\npython -m pip install --verbose --no-build-isolation --editable \".[dev]\"\n```\n\nI've tried all the basic stuffs (removing/re-creating the venv, etc), but I don't understand the error.\n\n### Code for reproduction\n\nRight after I git cloned and cd matplotlib:\n\n```Python\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements/dev/dev-requirements.txt\npip install -r requirements/doc/doc-requirements.txt\npip install -r requirements/testing/all.txt\npython -m pip install --verbose --no-build-isolation --editable \".[dev]\"\n```\n\n### Actual outcome\n\nUsing pip 22.0.4 from /Users/josephbarbier/Desktop/matplotlib/venv/lib/python3.10/site-packages/pip (python 3.10)\nObtaining file:///Users/josephbarbier/Desktop/matplotlib\n Running command Checking if build backend supports build_editable\n Checking if build backend supports build_editable ... done\n Running command Preparing editable metadata (pyproject.toml)\n + meson setup /Users/josephbarbier/Desktop/matplotlib /Users/josephbarbier/Desktop/matplotlib/build/cp310 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/Users/josephbarbier/Desktop/matplotlib/build/cp310/meson-python-native-file.ini\n The Meson build system\n Version: 1.8.0\n Source dir: /Users/josephbarbier/Desktop/matplotlib\n Build dir: /Users/josephbarbier/Desktop/matplotlib/build/cp310\n Build type: native build\n Program python3 python found: NO found 3.10.5 but need: '\u003e= 3.11'\n\n ../../meson.build:6:4: ERROR: Program 'python3 python' not found or not executable\n\n A full log can be found at /Users/josephbarbier/Desktop/matplotlib/build/cp310/meson-logs/meson-log.txt\n error: subprocess-exited-with-error\n\n × Preparing editable metadata (pyproject.toml) did not run successfully.\n │ exit code: 1\n ╰─\u003e See above for output.\n\n note: This error originates from a subprocess, and is likely not a problem with pip.\n full command: /Users/josephbarbier/Desktop/matplotlib/venv/bin/python /Users/josephbarbier/Desktop/matplotlib/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_editable /var/folders/m2/jfzxyg4s0xz3jyw5f94r7tcm0000gn/T/tmpwu3byzgi\n cwd: /Users/josephbarbier/Desktop/matplotlib\n Preparing editable metadata (pyproject.toml) ... error\nerror: metadata-generation-failed\n\n× Encountered error while generating package metadata.\n╰─\u003e See above for output.\n\nnote: This is an issue with the package mentioned above, not pip.\nhint: See above for details.\n\n### Expected outcome\n\nSuccessfully install matplotlib in development mode.\n\n### Additional information\n\n- I'm not sure why I have this version of Python installed here\n\n- I tried with pip latest (25.1.1), and it doesn't change anything\n\n- `meson-log.txt`\n\nBuild started at 2025-05-11T19:18:42.156591\nMain binary: /Users/josephbarbier/Desktop/matplotlib/venv/bin/python\nBuild Options: -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/Users/josephbarbier/Desktop/matplotlib/build/cp310/meson-python-native-file.ini\nPython system: Darwin\nThe Meson build system\nVersion: 1.8.0\nSource dir: /Users/josephbarbier/Desktop/matplotlib\nBuild dir: /Users/josephbarbier/Desktop/matplotlib/build/cp310\nBuild type: native build\nRunning command: /Users/josephbarbier/Desktop/matplotlib/venv/bin/python --version\n--- stdout ---\nPython 3.10.5\n\n--- stderr ---\n\n\nProgram python3 python found: NO found 3.10.5 but need: '\u003e= 3.11'\n\n../../meson.build:6:4: ERROR: Program 'python3 python' not found or not executable\n\n\n### Operating system\n\nMacOS Sequoia 15.4.1\n\n### Matplotlib Version\n\n3.10.3\n\n### Matplotlib Backend\n\nmacosx\n\n### Python version\n\nPython 3.10.5\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/JosephBARBIERDARNAL","@type":"Person","name":"JosephBARBIERDARNAL"},"datePublished":"2025-05-11T17:28:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/30038/matplotlib/issues/30038"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5c56d63f-546a-d380-4fd8-0ab591110fd3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CD6:171DD4:18613B4:2073398:6A52BC1C |
| html-safe-nonce | 3c08b9091ac6d41d16459583aa2a52d09b7b013fb4433daa0f4027e72a7502ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0Q2OjE3MURENDoxODYxM0I0OjIwNzMzOTg6NkE1MkJDMUMiLCJ2aXNpdG9yX2lkIjoiMTk3NzA2OTE1NzE4MzgzMTA2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d42332f9c252e65045747cf360bd1235c29f897cd0913eeedd812e9dc795c5c7 |
| hovercard-subject-tag | issue:3055113681 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/30038/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1f2d0d47df6d36d93abacc004637d74de58b35e091cfad4a7ebecf87e89951a9/matplotlib/matplotlib/issues/30038 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f2d0d47df6d36d93abacc004637d74de58b35e091cfad4a7ebecf87e89951a9/matplotlib/matplotlib/issues/30038 |
| og:image:alt | Bug summary I'm trying to install matplotlib in development mode for a PR, and I'm using this for installing it in dev mode (from here): python -m pip install --verbose --no-build-isolation --edita... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JosephBARBIERDARNAL |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width