-
Notifications
You must be signed in to change notification settings - Fork 281
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
[SOLVED] How do I install this on Mac M1? #42
Comments
You can just skip the Step with VS C++ build tools, and if you get errors you can try the next steps:
|
@Gourieff I appreciate the quick response :) Trying it now. Hope it works. Cheers! |
here is the error that I have encountered so far: ImportError: cannot import name 'mesh_core_cython' from 'insightface.thirdparty.face3d.mesh.cython' (unknown location) |
Tried to reinstall, here's what i got @Gourieff Thanks in advance! Building wheels for collected packages: insightface |
ERROR: Failed building wheel for insightface |
Found this instruction, may be it will work https://developers.google.com/optimization/install/cpp/binary_mac?hl=en Also you can try to install VS Code for Mac https://code.visualstudio.com/docs/?dv=darwinarm64cli |
made it work. found the prob, unfortunately I need to "accept" the terms and conditions of xcode first hence it's initially failing to build the wheel. Now it works! Thanks @Gourieff . You are awesome! Continue the good job. Cheers! |
Thanks for your good words! Glad to help! |
*** Error running postprocess_image: /Users/habhy/Sites/stable-diffusion-webui/extensions/sd-webui-reactor/scripts/reactor_faceswap.py |
Running on an M2 MacBook (14.2.1), I struggled to install the required "insightface" package despite having Xcode installed and following all the necessary above. However, I managed to solve the problem and wanted to share the solution here. It might help someone else or even my future self in case I stumble upon the same issue again! It seems that insightface relies on Cython extensions. This compilation requires a correct setup of C/C++ compilers along with their associated libraries and headers. The key to resolving my issue was ensuring the use of the correct SDKROOT. If this isn't set properly, the build process might not locate the correct SDK, which is what I believe was causing the problem in my case. Error:
To resolve, activate the environment and :
|
I was struggling with this for a while. Then reinstalled the requirements using the usual Did this on my M2 MBP |
For anyone that is still struggling on Mac M1/M2, what worked for me is changing compiler to
Then find your bin directory with
And then use the path found before installing:
|
Tried everything, but no luck. M2 Max, Mac OS 14.5
|
I am asking since i know that this needs Visual Basic. Not sure if this can utilize other C++ Compliers for Mac. Thanks in advance!
The text was updated successfully, but these errors were encountered: