First do run these commands inside Terminal/CMD:
conda update anaconda-navigator conda update navigator-updater
Then the issue for the instruction below will be resolved
For windows if you have anaconda installed, you can simply do
pip install opencv-python
or
conda install -c https://conda.binstar.org/menpo opencv
if you are on linux you can do :
pip install opencv-python
or
conda install opencv
Link1 Link2
For python3.5+ check these links : Link3 , Link4
Update:
if you use anaconda, you may simply use this as well (and hence don’t need to add menpo channel):
conda install -c conda-forge opencv
Related Posts:
- Cannot find module cv2 when using OpenCV
- Cannot find module cv2 when using OpenCV
- ImportError: numpy.core.multiarray failed to import
- ImportError: numpy.core.multiarray failed to import
- TypeError: ‘int’ object is not subscriptable
- TypeError: ‘int’ object is not callable
- TypeError: ‘int’ object is not callable
- Python ‘If not’ syntax [duplicate]
- RuntimeWarning: invalid value encountered in divide
- Converting dictionary to JSON
- WinError 2 The system cannot find the file specified (Python)
- IndexError: tuple index out of range —– Python
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- How to resize an image with OpenCV2.0 and Python2.6
- Could not find a version that satisfies the requirement tensorflow
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- Could not find a version that satisfies the requirement tensorflow
- ln (Natural Log) in Python
- Python Traceback (most recent call last)
- import opencv vs import cv2
- Unable to plot Double Bar, Bar plot using pyplot for ndarray
- How to pip or easy_install tkinter on Windows
- Convert list to tuple in Python
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- Why are Python’s ‘private’ methods not actually private?
- Remove list from list in Python
- How to create a new text file using Python
- TypeError: write() argument must be str, not bytes (Python 3 vs Python 2 )
- How to import files in python using sys.path.append?
- How can I upgrade NumPy?
- How do I install the yaml package for Python?
- Check string “None” or “not” in Python 2.7
- Change figure size and figure format in matplotlib
- how to update spyder on anaconda
- how does \r (carriage return) work in Python
- What is Python buffer type for?
- AttributeError(“‘str’ object has no attribute ‘read'”)
- IndexError: index 1 is out of bounds for axis 0 with size 1/ForwardEuler
- Python Save to file
- Difference in output with waitKey(0) and waitKey(1)
- Create 3D array using Python
- TypeError: unsupported operand type(s) for -: ‘list’ and ‘list’
- ImportError: No module named scipy
- AttributeError: ‘datetime’ module has no attribute ‘strptime’
- Python add item to the tuple
- Converting binary to decimal integer output
- How can I read pdf in python?
- No module named setuptools
- ImportError: libSM.so.6: cannot open shared object file: No such file or directory
- explain arguments meaning in res = cv2.bitwise_and(img,img,mask = mask)
- How to use 2to3 properly for python?
- How to fix: “UnicodeDecodeError: ‘ascii’ codec can’t decode byte”
- Python – ‘ascii’ codec can’t decode byte
- What does bitwise_and operator exactly do in openCV?
- Difference between scikit-learn and sklearn
- How to detect key presses?
- What is the difference between json.load() and json.loads() functions
- How to XOR two strings in Python
- TypeError: ‘_io.TextIOWrapper’ object is not subscriptable
- Copy a list of list by value and not reference
- Why I get ‘list’ object has no attribute ‘items’?
- Split a python list into other “sublists” i.e smaller lists
- scrapy run spider from script
- ImportError: No module named cv2
- python error: TypeError: an integer is required
- If list index exists, do X
- Python Requests – No connection adapters
- How to detect key presses?
- Numpy, multiply array with scalar
- Installation of pygame with Anaconda
- urllib and “SSL: CERTIFICATE_VERIFY_FAILED” Error
- Installing opencv on Windows 10 with python 3.6 and anaconda 3.6
- ‘virtualenv’ is not recognized as an internal or external command, operable program or batch file
- How can I copy a Python string?
- SystemError: new style getargs format but argument is not a tuple?
- Split string using a newline delimiter with Python
- No module named urllib3
- AttributeError: ‘tuple’ object has no attribute
- What is the meaning of “int(a[::-1])” in Python?
- cmake error ‘the source does not appear to contain CMakeLists.txt’
- ValueError: The channel sent is invalid on a Raspberry Pi – Controlling GPIO Pin 2 (BOARD) using Python causes Error
- How to completely uninstall python 2.7.13 on Ubuntu 16.04
- How does cv2.boundingRect() function of OpenCV work?
- Spell Checker for Python
- How to open html file?
- ‘instancemethod’ object has no attribute ‘__getitem__’ with class variables
- “Python version 2.7 required, which was not found in the registry” error when attempting to install netCDF4 on Windows 8
- Install py2exe for python 2.7 over pip: this package requires Python 3.3 or later
- ImportError: No module named IPython
- Does python have header files like C/C++?
- In python, how can I print lines that do NOT contain a certain string, rather than print lines which DO contain a certain string:
- input() error – NameError: name ‘…’ is not defined
- Symbol not found: __PyCodecInfo_GetIncrementalDecoder
- Python 2.7 mixing iteration and read methods would lose data
- Homebrew brew doctor warning about /Library/Frameworks/Python.framework, even with brew’s Python installed
- What does an ‘r’ represent before a string in python?
- Python list index out of range on return value of split
- ValueError: total size of new array must be unchanged
- Python: OSError: [Errno 2] No such file or directory: ”