-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects, ERROR: Failed building wheel for insightface #2340
Comments
你解决了么 |
I am also getting similar error while installing this library on my Mac M2 running Mac OS Ventura 13.4.1
|
I found that using |
similar error! Installed in Mac interCPU, Anaconda Environment, but could not pip install insightface, error message is :Could not build wheels for insightface, which is required to install pyproject.toml-based projects. How to resolve it? I try python3.10.9, 3.10.11 and 3.11, but same error. |
Same as above. Using python 3.11.4. |
it perfectly solve this problem |
macos M2:
that is ok |
It helps |
it's not work. |
@smallchao my machine is mac m2 |
I had the same problem while trying to install insightface on Windows 11. You need to install Microsoft Build Tools (link: https://visualstudio.microsoft.com/visual-cpp-build-tools/) Choose Desktop development with C++ And then select the following individual components: Windows 11 SDK |
I tried this and it still didnt work |
I just cant solve this problem,bother me for a long time:( |
I just installed FaceFusion was getting same error followed this fix and worked |
I had the same issue, it was fixed on Ubuntu 22.04 (WSL2 on Windows 11) by installing the dev version of python, for example apt install python3.10-dev |
it works on ubuntu20.04. 解决了 |
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. |
Not solved - I using Python 3.10.6. |
I was in a similar situation。 Building wheels for collected packages: insightface × Building wheel for insightface (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. |
Those can be found in individual packages tab. install the latest version of each |
I have settled my problem using this method |
What worked for me was going to the root folder ...\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable Then go back in the python_embeded folder and run the batchfile
Before I was solely operating in the embeded folder, but running the first command outside of this folder solved it! |
i installed 3.10 using pyenv and then tried to install reactor face swap by watching a youtube tutorial, only got 1 min 13 seconds into the video when i got this terminal error: mesh_core_cython.cpp note: This error originates from a subprocess, and is likely not a problem with pip. |
您好,您的邮件我已收到!
|
im confused, what do you write instead of xxxxxx? |
i somewhat followed what you did. only I'm new to PC and i right clicked on the whl file and couldnt find terminal so i clicked open in an app that you can download from the microsoft store. so I downloaded python 3.10 and then right clicked on the file and said open with python 3.10 and this whole terminal window opened and it looked like it was doing something that didnt say the words error. ok now im going to the windows bat file to hit install for face reactor and got the same error again: ERROR: Failed building wheel for insightface |
if i go to the search bar for individual components and copy/paste this in verbatim "Windows 11 SDK C++ x64/x86 build tools" nothing comes up. there are sooooo many c++ x64/x86 versions to choose. i chose one "c++ modules for v143 build tools (x64/x86 - experimental" and it didnt fix my issue. at the very bottom fo the list i had chosen "windows 11 sdk (10.0.22621.0)" and that didnt fix the issue. which is the CORRECT version of c++ to choose? |
I tried that and terminal told me: ERROR: insightface-0.7.3-cp310-cp310-win_amd64.whl is not a supported wheel on this platform. |
Do you have cp310? If you have 311 you need to adjust the correct file. Also if you don't have the portable Version it might be different |
i have python 3.10.11 installed so i chose the cp310 windows because i assume 310 = python 3.10 |
All i did was to go back and downloaded Microsoft build from Download Here and reinstalled it , although if you have it installed, a dialogu box will popup and comfirm youve downloaded and installed, and an interface will come up with OPTIONS
THEN , go ahead and run it, the file is about 2GB, after that , restart your computer and case will be closed |
您好,您的邮件我已收到!
|
on WSL2 Ubuntu 24.04. have to use this option and then it works.
and then followed by the instructions in the url
and finally
|
您好,您的邮件我已收到!
|
|
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
Building wheels for collected packages: insightface
Building wheel for insightface (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for insightface (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [192 lines of output]
WARNING: pandoc not enabled
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\insightface
copying insightface_init_.py -> build\lib.win-amd64-cpython-310\insightface
creating build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app\common.py -> build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app\face_analysis.py -> build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app\mask_renderer.py -> build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app_init_.py -> build\lib.win-amd64-cpython-310\insightface\app
creating build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands\insightface_cli.py -> build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands\model_download.py -> build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands\rec_add_mask_param.py -> build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands_init_.py -> build\lib.win-amd64-cpython-310\insightface\commands
creating build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data\image.py -> build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data\pickle_object.py -> build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data\rec_builder.py -> build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data_init_.py -> build\lib.win-amd64-cpython-310\insightface\data
creating build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\arcface_onnx.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\attribute.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\inswapper.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\landmark.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\model_store.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\model_zoo.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo_init_.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
creating build\lib.win-amd64-cpython-310\insightface\thirdparty
copying insightface\thirdparty_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty
creating build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\constant.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\download.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\face_align.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\filesystem.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\storage.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\transform.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils_init_.py -> build\lib.win-amd64-cpython-310\insightface\utils
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d
copying insightface\thirdparty\face3d_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
running egg_info
writing insightface.egg-info\PKG-INFO
writing dependency_links to insightface.egg-info\dependency_links.txt
writing entry points to insightface.egg-info\entry_points.txt
writing requirements to insightface.egg-info\requires.txt
writing top-level names to insightface.egg-info\top_level.txt
reading manifest file 'insightface.egg-info\SOURCES.txt'
writing manifest file 'insightface.egg-info\SOURCES.txt'
K:\StableDiffusion\sdwebui\py310\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning: Installing 'insightface.thirdparty.face3d.mesh.cython' as data is deprecated, please list it in
packages
.!!
The text was updated successfully, but these errors were encountered: