Ubuntu Running OpenCV project tip: ModuleNotFoundError: No Module Named ‘Cv2’
Haha, that was the problem when it was first installed. Just throw me up.
1. Reason: the versions are inconsistent
The problem is that when installing OpencV-Python, the detailed version number is appended, which makes it different from the Python environment. In addition, there will be other problems, I can’t remember exactly.
2. Solutions
- first use the instruction:
PIP install opencv-python
to execute once, if the .py
file or so to see the next one; Just do not append the version number when installing OpencV-Python. Read More:
- ModuleNotFoundError: No module named ‘notebook‘
- Mmdet error modulenotfounderror: no module named ‘mmcv_ ext‘
- ModuleNotFoundError: No module named xxx
- [Solved] ModuleNotFoundError: No module named ‘win32api’
- ModuleNotFoundError: No module named ‘tensorflow_core.estimator‘
- ModuleNotFoundError: No module named ‘apt_pkg‘
- ModuleNotFoundError: No module named ‘numpy.testing.nosetester‘
- ModuleNotFoundError: No module named ‘ahocorasick‘ [100% Work Method]
- ModuleNotFoundError: No module named ‘tensorboardX‘
- ModuleNotFoundError: No module named ‘mmcv._ext
- ModuleNotFoundError: No module named ‘MySQLdb‘
- ModuleNotFoundError: No module named ‘sklearn.datasets.samples_generator‘
- Jenkins reported an error modulenotfounderror: no module named filename solution
- Tensorflow operation report error modulenotfounderror: no module named ‘tensorflow. Python. Types’ solution
- Error importing keras in jupyter Notebook: modulenotfounderror: no module named ‘keras’ solution
- Module not found error: the solution to the problem of no module named ‘MySQL’
- Solve the problem of using in tensoft 2. X tf.contrib.slim No module named appears in the package: tensorflow.contrib problem
- CentOS solves the problem of modulenotfounderror when salt calls python3 script remotely, and solves the problem that PIP3 module cannot be shared by different users
- About the problem of calling tools library by running Python program under Mac OS X, modulenotfoundererror: no module named ‘tools‘
- ImportError: No module named indexes.base