Maybe a note in the readme might help others until Anaconda resolves this?Īlternatively, the menpo/opencv3 Anaconda package would also work but I don't think it supports ffmpeg nor opencv-contrib.įor reference, I'm running on Python 3.5.2 which came with Anaconda 4.2.0 ( official installer), although conda info reports a slightly newer version: I thought I'd share this bit of troubleshooting since Anaconda is a popular distribution among academics and so is OpenCV, so I figure I might not be the only one running into this issue. Similar steps can be followed to install OpenCV on anaconda for MacOS. If you are using Anaconda or Miniconda you can install Albumentations from conda-forge. conda install -c conda-forge opencv3.4.1. I finally did the standard download: conda install -c conda-forge opencv And it worked. This distribution has opencv-python-headless as its dependency.
I then created a second environment called opencv4. but when i open spyder from the prompt and try to import cv2 in the development environment in a. conda install -c anaconda opencv This gave me opencv 3, not the most recent 4.
CONDA INSTALL OPENCV ANACONDA ZIP
ContinuumIO/anaconda-issues#1394 references this and it seems like it's just not supported(?).Īs a workaround suggested in that thread, I solved this by just copying python3.dll from the official CPython 3.5.2 binaries (specifically from the Windows x86-64 embeddable zip file) into C:\Anaconda3, although I imagine it would work being anywhere in your PATH. Now, when i open the Anaconda prompt and type python, then import cv2, and print cv2,version it shows be opencv 3.1.0 and again when i activate opencv and type conda list it shows opencv 3.1.0 in the list. We recommend you install Anaconda for the local.
CONDA INSTALL OPENCV ANACONDA PLUS
If you prefer to have conda plus over 7,500 open-source packages, install Anaconda. Λ dumpbin.exe C:\Anaconda3\Lib\site-packages\cv2\cv2.cp35-win_amd64.pyd /IMPORTS | grep dllĪfter checking if these were in the PATH I was surprised to find that python3.dll was the only one that wasn't!Īlthough python3.dll comes with the standard CPython install, it's not packaged with Anaconda for some reason. The fastest way to obtain conda is to install Miniconda, a mini version of Anaconda that includes only conda and its dependencies.