![]() ![]() On M1 this is a problem and instead we want to the arm64 versions of OpenCV and its dependencies. This means that most software is still built to run on amd64 processors so when we install OpenCV, there is a strong chance your computer, or dependency manager, tries to install an amd64 version. However, computers using arm64 processors are a very small subset compared to the billions of amd64 computers that have been around for the last 15 years. Macs with M1 processors use the arm64 architecture which is incompatible with the amd64 architecture used by the likes of Intel and AMD. Its dependency list includes packages like ffmpeg, libgfortran, and pixman which is where the issues start, especially for the M1. OpenCV is a large library with a lot of dependencies though. It provides a large set of image manipulation tools that are very useful for processing images and image streams often for use with machine learning algorithms. Steps: conda create -n myenv python=3.7 # This will create a virtual environment named myenv with python3.OpenCV is one of the most popular computer vision libraries. The same thing we can do here with conda. If you are familiar with python, we have package called virtualenv to create virtual environment. By default, anaconda runs in environment name “base”. So, what is the simple solution ? Virtual environment comes to rescue. Wait, this is going to take lot of time and in last will show multiple conflicts which is not easy to resolve. Now the most tempting thing to do is to downgrade python version. This confirmed that the latest opencv package is built with p圓7 packages and hence it is not installable with python3.8. Then, searched for available opencv package. Python 3.7.7 hfe9666f_0_cpython pkgs/main Python 3.7.7 hc70fcce_0_cpython pkgs/main So, I started searching for availble python versions of conda: $ conda search python ![]() ![]() Package cache : /Users/user-abc/anaconda3/pkgsĮnvs directories : /Users/user-abc/anaconda3/envs Populated config files : /Users/user-abc/.condarcīase environment : /Users/user-abc/anaconda3 (writable) User config file : /Users/user-abc/.condarc Note that conda will notĬhange your python version to a different minor version unless you explicitly specifyĪbove error suggested that opencv package in the current repository is only supported with pythonĪfter googling for a bit, I found many different solution but none of them worked in my case.Īctive env location : /Users/user-abc/anaconda3/envs/pandas Not available for the python version you are constrained to. When python appears to the right, that indicates that the thing on the left is somehow If python is on the left-most side of the chain, that's the version you've asked for. To be incompatible with the existing python installation in your environment: UnsatisfiableError: The following specifications were found Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.Ĭollecting package metadata (repodata.json): doneįound conflicts! Looking for incompatible packages. Solving environment: failed with initial frozen solve. Below is the error excrept: $ conda install -c conda-forge opencvĬollecting package metadata (current_repodata.json): done When I tried to installed opencv package, it showed errors. ![]() Recently I installed Anaconda 2020.11 on my Mac machine. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |