1. Question.
Python3.8 environment
When using pip3 to install opencv-python, there is a
[modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all’ failed
2. Cause.
When compiling in opencv-python, it cannot call python3.8 properly
3. Solution:
sudo apt-get install python3.8-dev
4. Successful installation
Read More:
- [Solved] cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\……
- Opencv-python Install is Stuck Error: running setup.py bdist_wheel for opencv-python
- Opencv Python realizes the paint filling function in PS, one click filling color and the possible reasons for opencv’s frequent errors
- [Solved] ERROR: Failed building wheel for opencv-python-headless
- [Solved] Pyinstaller package opencv error: ImportError: OpenCV loader: missing configuration file: [‘config.py’]. Check OpenCV installation.
- [Solved] python opencv Error: findContours() Can only use the Grayscale
- Python+OpenCV: How to Use Background Subtraction Methods
- Invalid python sd, Fatal Python error: init_fs_encoding: failed to get the Python cod [How to Solve]
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- MAC OS install python3 Error: Permission denied @ dir_s_mkdir-/usr/local/Frameworks
- [Solved] Python opencv imshow Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow
- Python Error: pip install mysql-connector-python failed
- An introduction to sys modules in Python and how packages are imported and used
- npm install Error: stack Error: Can’t find Python executable “python”
- [Solved] supervisor Error: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
- Raspberry pie import opencv error: ImportError: numpy.core.multiarray failed to import
- Linux installs Python and upgrades Python
- Python TypeError: not all arguments converted during string formatting [Solved]