简体   繁体   中英

unable to download OpenCv on mac with pycharm

Don't know what the issue is. I am unable to download openCv on my mac with pycharm.

I use Python Version 3.8.1.

I have tried to:

pip3 install --upgrade pip setuptools wheel

pip3 install --upgrade pip

I use command:

pip3 install opencv-python

Still does not work. I get the message:

ERROR: Failed building wheel for opencv-python

Failed to build opencv-python

What is the issue? Hope you can help. Has been taking me several of hours now and each time to "build" takes like 1 hour..

Do you have a MacBook with M1 processor?

The problem is that pip does not always install the arm64 version and instead tries to use rosetta to run amd64 versions which breaks. So it “works” it is just finicky and error prone.

Try to install following the steps on this blog: https://blog.roboflow.com/m1-opencv/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM