I ran across this which lists opencv as an included package: After running conda info I noticed my version is 3. But you may need to isntall Microsoft Visual C++ redistributable package accoriding to your python package. The following instruction works for me is inspired by this. In my case, the root of Anaconda refers to python3, meanwhile I created another env that refer to python2. In that case, I am usually careful to activate the conda environment and then sudo.
But I hope it would take you much less time! For example, assuming you have Python 3. False - fail to write out video. ? This will help out the community a lot! So I installed Git and I set the environment variables. Approach Two If you're using Anaconda Distribution , process are pretty much easy than before. I'm pretty confused about this.
So far I have got it working on both my desktop and laptop, both 64-bit machines and Windows 8. Read on for the detail instructions. I did a little searching online, and few has suggested to install the Microsoft Visual C++ Redistributable 2015 to solve the issue. But I hope it would take you much less time! One more suggested test that took me awhile to figure out. It took me days to have got it working. To do this we need to have a test python code, call it test. It seems to be recommended everywhere in the scientific community.
In the test code I needed to add parentheses around the print statements. I am currently on a 64-bit machine. Now go to the folder where you downloaded these files and run the following : pip install numpy-1. False - fail to read video. False - fail to write out video. It worked with Spyder directly after executing this command for me.
I am on Python 2. Pick a version you like 2. Currently, I am using Windows 8. False - fail to read video. Then: import cv2 print cv2.
To do this, copy the cv2. It took me days to have got it working. Copy and Paste the cv2. I am currently on a 64-bit machine. I fired up the Anaconda environment, and tried loading cv2 in Python. False - fail to read video.
False — fail to read video. So, basically make sure that the default version for which you want to install everything is the one which is aliased as 'python', and everything goes fine. I am on Python 2. I am trying to work on neural networks in Python using the following Keras packages: from keras. I tried installing it, but still got the same error. The good thing with anaconda is that it should make your life easier without getting your hands too dirty. When I installed cv2 or pygame using apt-get, they were installed for default version but when I installed any package by downloading the installer first like I installed anaconda , it was installed for python 2.
Copy and Paste the cv2. If this pulls up results which it should for opencv , then click on one of the results that is for your platform e. . I aliased 'python' for the default version and then installed anaconda via installer and now it has been installed default version. Not the answer you're looking for? Since Anaconda 3 installs 3.