How to Fix This Issue "Error: Failed Building Wheel for Insightface"

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for insightface Failed to build insightface ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects

I have tried everything like updating and etc

2

2 Answers

I had the same issue on my desktop where I was building a project on Windows 11.

You need to install Microsoft build tools from this link (or latest)

Select: Workloads → Desktop development with C++

Individual Components must be checked:

  • Windows SDK
  • C++ x64/x86 build tools

Hope it helps.

1

I encountered this issue on my Ubuntu 22, and it was resolved by using sudo apt-get install build-essential. I hope this is helpful for everyone.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest