
Install libmagic using the brew (/usr/local/bin/brew).It can be fixed by following the below steps. Raise ImportError('failed to find libmagic.

If you have libmagic in your project requirement and getting the ImportError like show below. txt Bonus Tips - How to resolve libmagic import error on M1 Mac: Now you can install your project's requirements. It may take some time depending upon your internet connection and system speed.Īctivate the virtual environment using the following command. Note: replace 3.6.12 with the Python version you want to install and replace env_name with your environment name. Creating Virtual Environment:Ĭreate the virtual environment by executing the below command. Just follow the installation instructions and accept the end-user agreement. Go to the Downloads folder and double click on the downloaded Miniconda package file. Here we are going to install Miniconda package file. One is downloading as a bash(.sh) file and another way is download as a package(.pkg) file.

There are two options to download Miniconda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others.ĭownload miniconda from their official website.

Miniconda is a free minimal installer for conda.

We can verify the installation directory by using which command which brew Open Terminal and run the below command to install home brew.
