Title: [Bug]: Documentation not so clear that a C/C++-compiler is required to install from source · Issue #24359 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Documentation not so clear that a C/C++-compiler is required to install from source · Issue #24359 · matplotlib/matplotlib
X Title: [Bug]: Documentation not so clear that a C/C++-compiler is required to install from source · Issue #24359 · matplotlib/matplotlib
Description: Bug summary i am building documentation but there's an error occured here. Code for reproduction follow the documentation https://matplotlib.org/stable/devel/development_setup.html#installing-for-devs Actual outcome note: This error orig...
Open Graph Description: Bug summary i am building documentation but there's an error occured here. Code for reproduction follow the documentation https://matplotlib.org/stable/devel/development_setup.html#installing-for-d...
X Description: Bug summary i am building documentation but there's an error occured here. Code for reproduction follow the documentation https://matplotlib.org/stable/devel/development_setup.html#installing-f...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24359
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Documentation not so clear that a C/C++-compiler is required to install from source","articleBody":"### Bug summary\r\n\r\ni am building documentation but there's an error occured [here](https://matplotlib.org/stable/devel/development_setup.html#install-matplotlib-in-editable-mode). \r\n\r\n\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nfollow the documentation\r\nhttps://matplotlib.org/stable/devel/development_setup.html#installing-for-devs\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\nnote: This error originates from a subprocess, and is likely not a problem with pip.\r\n ERROR: Failed building editable for matplotlib\r\nFailed to build matplotlib\r\nERROR: Could not build wheels for matplotlib, which is required to install pyproject.toml-based projects\r\n\r\n### Expected outcome\r\n\r\nit should be succesfully build.\r\n\r\n### Additional information\r\n\r\nhere is the log:\r\n Traceback (most recent call last):\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\command\\editable_wheel.py\", line 140, in run\r\n self._create_wheel_file(bdist_wheel)\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\command\\editable_wheel.py\", line 330, in _create_wheel_file\r\n files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\command\\editable_wheel.py\", line 261, in _run_build_commands\r\n self._run_build_subcommands()\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\command\\editable_wheel.py\", line 288, in _run_build_subcommands\r\n self.run_command(name)\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\_distutils\\cmd.py\", line 319, in run_command\r\n self.distribution.run_command(command)\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\dist.py\", line 1217, in run_command\r\n super().run_command(command)\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\_distutils\\dist.py\", line 987, in run_command\r\n cmd_obj.run()\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\command\\build_ext.py\", line 84, in run\r\n _build_ext.run(self)\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\_distutils\\command\\build_ext.py\", line 346, in run\r\n self.build_extensions()\r\n File \"\u003cstring\u003e\", line 183, in build_extensions\r\n File \"E:\\LECTURES\\Documentation\\Python\\matplotlib\\setupext.py\", line 699, in do_custom_build\r\n cc.initialize()\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\_distutils\\_msvccompiler.py\", line 253, in initialize\r\n vc_env = _get_vc_env(plat_spec)\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\msvc.py\", line 214, in msvc14_get_vc_env\r\n return _msvc14_get_vc_env(plat_spec)\r\n File \"C:\\Users\\HaLF-MenTaL\\AppData\\Local\\Temp\\pip-build-env-mlkau0ej\\overlay\\Lib\\site-packages\\setuptools\\msvc.py\", line 168, in _msvc14_get_vc_env\r\n raise distutils.errors.DistutilsPlatformError(\r\n distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with \"Microsoft C++ Build Tools\": https://visualstudio.microsoft.com/visual-cpp-build-tools/\r\n Building freetype in build\\freetype-2.6.1\r\n error: Support for editable installs via PEP 660 was recently introduced\r\n in `setuptools`. If you are seeing this error, please report to:\r\n\r\n https://github.com/pypa/setuptools/issues\r\n\r\n Meanwhile you can try the legacy behavior by setting an\r\n environment variable and trying to install again:\r\n\r\n SETUPTOOLS_ENABLE_FEATURES=\"legacy-editable\"\r\n error: subprocess-exited-with-error\r\n\r\n × Building editable for matplotlib (pyproject.toml) did not run successfully.\r\n │ exit code: 1\r\n ╰─\u003e See above for output.\r\n\r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\n full command: 'E:\\LECTURES\\Documentation\\Python\\virtEnv\\Scripts\\python.exe' 'E:\\LECTURES\\Documentation\\Python\\virtEnv\\lib\\site-packages\\pip\\_vendor\\pep517\\in_process\\_in_process.py' build_editable 'C:\\Users\\HALF-M~1\\AppData\\Local\\Temp\\tmp576u6u2s'\r\n cwd: E:\\LECTURES\\Documentation\\Python\\matplotlib\r\n Building editable for matplotlib (pyproject.toml) ... error\r\n ERROR: Failed building editable for matplotlib\r\nFailed to build matplotlib\r\nERROR: Could not build wheels for matplotlib, which is required to install pyproject.toml-based projects\r\n\r\n### Operating system\r\n\r\nWindows 10 Pro Version\t22H2\r\n\r\n### Matplotlib Version\r\n\r\nmatplotlib 3.6.2\r\n\r\n### Matplotlib Backend\r\n\r\n_No response_\r\n\r\n### Python version\r\n\r\n3.10.8\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\ngit checkout","author":{"url":"https://github.com/a-sajjad72","@type":"Person","name":"a-sajjad72"},"datePublished":"2022-11-04T06:22:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/24359/matplotlib/issues/24359"}
| 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:3a4399c3-bcc6-45a4-48f3-d829cde0a323 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89C0:2D422D:F41E5F:14882DC:6A520386 |
| html-safe-nonce | 8247d99585255cc84121ef6dd3b8e438efc17535945b8ce6e43ce457e47ea2d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUMwOjJENDIyRDpGNDFFNUY6MTQ4ODJEQzo2QTUyMDM4NiIsInZpc2l0b3JfaWQiOiIzOTAwOTQ2NDU2ODgyODQwNDU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ed315a8d3ac8ea8be966964e6a5142c1fd0375b14c48d95ca6c81d8fd0776c59 |
| hovercard-subject-tag | issue:1435618735 |
| 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/24359/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6dfa91a72380ed108ebd285662f153157857415f6e015076af028d4f27fb375c/matplotlib/matplotlib/issues/24359 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6dfa91a72380ed108ebd285662f153157857415f6e015076af028d4f27fb375c/matplotlib/matplotlib/issues/24359 |
| og:image:alt | Bug summary i am building documentation but there's an error occured here. Code for reproduction follow the documentation https://matplotlib.org/stable/devel/development_setup.html#installing-for-d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | a-sajjad72 |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width