1.问题:
Python3.8环境
利用pip3 install opencv-python 时,出现了
[modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all’ failed
2. 原因:
在opencv-python编译时,无法正常调用python3.8
3. 解决方法:
sudo apt-get install python3.8-dev
4.安装成功