The message
error: Microsoft Visual C++ 14.0 or greater is required. … ERROR: Failed building wheel for insightface
Affects: ComfyUI, AUTOMATIC1111 Stable Diffusion WebUI, SD.Next
Why is this happening?
insightface contains C++ code and is usually built by pip itself on Windows, which requires the Microsoft C++ Build Tools. It is needed for FaceID models in IPAdapter Plus and for older ReActor versions. ReActor version 0.7.0 and later works without insightface or Build Tools. The ReActor author also provides ready-made Windows wheels for insightface 0.7.3.
How to fix it
- If you use ReActor: update the node through the ComfyUI Manager to version 0.7.0 or newer, then run
install.batin theComfyUI\custom_nodes\ComfyUI-ReActorfolder. Then you no longer need insightface. - For IPAdapter FaceID, insightface is still required. Check the Python version. Portable: open a terminal in the
ComfyUI_windows_portablefolder and run.\python_embeded\python.exe -V. - Download the matching ready-made wheel from the Gourieff/Assets repository (folder
Insightface): for example,insightface-0.7.3-cp312-cp312-win_amd64.whlfor Python 3.12; there are files for 3.9 through 3.13. Place it in theComfyUI_windows_portablefolder. - Portable:
.\python_embeded\python.exe -m pip install -U pipand then.\python_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl(adjust the filename). - A1111 or SD.Next: In the program folder, run
.\venv\Scripts\activate, thenpython -m pip install -U pipandpip install insightface-0.7.3-cp312-cp312-win_amd64.whl. - If the node still reports “InsightFace is not installed” after that, first remove it with
pip uninstall insightface(Portable:.\python_embeded\python.exe -m pip uninstall insightface) and then install the wheel again. - If you want to build insightface yourself, install the Microsoft C++ Build Tools (see the entry “pip: Microsoft Visual C++ 14.0 or greater is required”).
Better not: Only download ready-made insightface wheels from the source the node author links to (Gourieff/Assets), not from random download sites.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Set up and maintain ComfyUI on Windows
Desktop or Portable, where the models belong, sharing models with other programs, safely installing custom nodes, updates, startup options … - Your First Image with ComfyUI
Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo. - Your First AI Video with LTX in ComfyUI
Use LTX-2.3 in ComfyUI to create short videos with sound from text or an image. Template, files, settings, and license.
Terms for this
Similar errors
- AMD Radeon is not being used, PyTorch is running on the CPU
- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x – a package does not match the installed NumPy version
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
- ImportError: DLL load failed while importing …: The specified module could not be found – a Python package is missing a Windows DLL
- module 'torch' has no attribute 'float8_e4m3fn' (PyTorch too old for fp8)
Sources
- https://github.com/Gourieff/ComfyUI-ReActor
- https://github.com/cubiq/ComfyUI_IPAdapter_plus/issues/162
- https://github.com/Gourieff/Assets/tree/main/Insightface
- https://github.com/cubiq/ComfyUI_IPAdapter_plus
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.