-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
pip install mediapipe not working on apple silicon Macs, even in anaconda environment #2120
Comments
What is the pip and python version? |
Same issue. |
Same versions on my machine as well. Any ways to solve this issue? |
Hi @nakshatrasinghh , Can you check this [reference](MediaPipe PyPI supports macOS 10.15 and above. See https://github.com/google/mediapipe/blob/master/docs/getting_started/troubleshooting.md#python-pip-install-failure.). |
Did you try it with python 3.7? I myself got some issues on my macbook (11.2.2). After I changed the conda python env to 3.7 everything worked fine |
MediaPipe currently doesn't support arm macOS. So does Mediapipe Python package. |
I did some digging into this and went so far as to attempt to build a wheel for arm64, but to no avail. The only workaround I could find was to instead use rosetta. Here are the steps I took, which may be of help to others facing m1 issues:
After this, I was able to run mediapipe on my Mac. I hope this helps, and good luck! |
Hi @josiahsrc, Thank you so much for sharing your answer this will definitely help full to the community. Thanks! |
Yes @josiahsrc after this process it installed successfully into my machine but it's not working. Showing wrong architecture. |
@belelaritra Make sure you're using a python3.8.* version installed with x86_64 architecture. I was able to do this by installing Homebrew for x86_64 architecture (see this post). Then, I installed python 3.8.* using arch -x86_64 /usr/local/Homebrew/Cellar/python@3.8/3.8.11/bin/python3 -m venv myenv |
here homebrew is installed inside |
On m1 macs, its typical to have two versions of Homebrew installed. One will be in opt folder (Homebrew for ARM), the other in /usr/local (Homebrew for x86_64) |
I have followed all the steps from the link you have provided but there is no |
Did you follow the second post? It looks like the accepted one is a bit outdated. Make sure you use the x86_64 homebrew via |
Sorry I followed the first one. Thank you sir. |
Happy to help! 😄 |
|
it doesnt work on python 3.10 i downgraded mine to 3.9 and it worked |
Hi @jiuqiant. Can I ask what the plans are regarding the support for the osx-arm64 platform? |
Is the issue only with TensorFlow, or does anything else in mediapipe or which mediapipe depends play as a blocker in using (or building) mediapipe on the M1 processor on mac? |
Write this code in the terminal. I tried to install "mediapipe-silicon" in my M1 Pro MacBook but version error was coming every time with most versions of python but luckily I found the above solution and it worked. Hopefully this might work for other developers. Happy Coding! |
The text was updated successfully, but these errors were encountered: