{"id":1127,"hash":"9fd080a8a0c1e5bd42920cccec415e1bec5c252bae754d32a6dd5b33d76408a6","pattern":"ERROR: Failed building wheel for numpy , ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects","full_message":"I`m using python poetry(https://python-poetry.org/) for dependency management in my project.\n\nThough when I`m running poetry install, its giving me below error.\n\nERROR: Failed building wheel for numpy\n  Failed to build numpy\n  ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects\n\nI`m having python 3.9 installed in my laptop.\n\nI installed numpy 1.21.5 using pip install numpy, I even tried to down version it to 1.19.5.\n\nThough I`m getting the same error.\n\nI found out many people are getting ERROR: Failed building wheel for numpy this error in python 3.10, they solved it by down versioning python to 3.9, though that didnt working for me.","ecosystem":"pypi","package_name":"macos","package_version":null,"solution":"I solved it by doing the following steps:-\n\nI updated the pyproject.toml(This file contains all the library/dependency/dev dependency)with the numpy version that I installed using pip install numpy command.\n\nRun poetry lock to update poetry.lock file(contains details information about the library)\n\nRun poetry install again, & it should work fine.\n\nIn a nutshell, you just have to install the correct version of numpy Click me to check the compatibility\n\nAnd then install the required version using pip install numpy==version.\n\nExample:\nTo install NumPy version 1.23.5, use the following-\npip install numpy==1.23.5\n\nIf you are having any problems, you can comment.\nI`ll try to answer it.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/70565965/error-failed-building-wheel-for-numpy-error-could-not-build-wheels-for-numpy","votes":54,"created_at":"2026-04-19T04:52:24.093997+00:00","updated_at":"2026-04-19T04:52:24.093997+00:00"}