Opencv python mac m1
#OPENCV PYTHON MAC M1 INSTALL#
conda create -name testcv python=3.8Īnd activate it by running conda activate testcv Step4: Installing Some DependenciesĪs we are going to install OpenCV natively we have to install the compatible version of Numpy which Apple provides for M1. Let’s create a virtual environment named cv2 with python3.8 installed. You can turn off the default base env by running conda config -set auto_activate_base false Step3: Create a virtual environment
Miniforge enables installing python packages natively compiled for Apple Silicon.Īfter the installation of miniforge, by default, it gives us one base environment. Install miniforge for arm64 (Apple Silicon) from miniforge GitHub. xcode-select -install Step2: Install Miniforge If it’s not already installed in your system, you can install it by running the following command below in your terminal. I have already installed Xcode Command Line Tools on my mac. bin/bash -c "$(curl -fsSL )"Īfter it gets installed, install wget and CMake. If Homebrew is not already installed in your system you can install it by running the following in your terminal. Step1: Homebrew and XCode CLI Installation Step3: Create a virtual environment with python3.8.
Last year in November 2020 apple releases their first ARM64-based M1 chip. In this blog post, we are going to build and install OpenCV on anM1 Mac.