ERROR: Failed building wheel for numpy , ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects

I solved it by doing the following steps:-

  1. 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.
    enter image description here

  2. Run poetry lock to update poetry.lock file(contains details information about the library)
    enter image description here

  3. 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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)