ERROR: Failed building wheel for numpy , ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
I`m using python poetry(https://python-poetry.org/) for dependency management in my project. Though when I`m running poetry install, its giving me below error. ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects I`m having python 3.9 installed in my laptop. I installed numpy 1.21.5 using pip install numpy, I even tried to down version it to 1.19.5. Though I`m getting the same error. I 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.
I solved it by doing the following steps:- I 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. Run poetry lock to update poetry.lock file(contains details information about the library) Run poetry install again, & it should work fine. In a nutshell, you just have to install the correct version of numpy Click me to check the compatibility And then install the required version using pip install numpy==version. Example: To install NumPy version 1.23.5, use the following- pip install numpy==1.23.5 If you are having any problems, you can comment. I`ll try to answer it.
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/9fd080a8a0c1e5bd42920cccec415e1bec5c252bae754d32a6dd5b33d76408a6