Skip to content
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

how to install cv2 in MacBook Pro 2020 M1 Mac #19113

Closed
vivek-ram opened this issue Dec 14, 2020 · 3 comments
Closed

how to install cv2 in MacBook Pro 2020 M1 Mac #19113

vivek-ram opened this issue Dec 14, 2020 · 3 comments
Labels
category: build/install platform: ios/osx question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org

Comments

@vivek-ram
Copy link

need help with installing got errors when installing this.

@ShinnnosukeNakamura
Copy link

I set the terminal to (launched in Rosetta) and ran this command and it worked
pip install opencv-python

@Rustam-Z
Copy link

Hi there, after searching the web I have successfully installed OpenCV on my Mac M1.

  1. Probably you don't have brew installed, so here's how you should install it:
    • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    • brew install wget
    • brew install miniforge
    • brew install cmake, you will need cmake for building OpenCV code
  2. Then just follow this blog: https://sayak.dev/install-opencv-m1/#Install-conda

P.S. If mdfind cv2.cpython returning an empty string then try to delete the build folder and compile opencv again. Otherwise, you have done everything correctly.

@alalek
Copy link
Member

alalek commented Jul 11, 2021

See also: opencv/opencv-python#429

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build/install platform: ios/osx question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org
Projects
None yet
Development

No branches or pull requests

4 participants