No module named 'gdbm'
sudo apt-get install python3-gdbm
sudo apt-get install python3.6-gdbm
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/mysql-5.5.33/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/mysql-5.5.33/CMakeFiles/CMakeError.log".
解决方法,删除这个文件后重新编译
# rm -r CMakeCache.txt
opencv的pip/pip3快速安装-国内源
# python2版本的基本包安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
# python2版本的额外包安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python
# python3版本的基本包安装
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
# python3版本的额外包安装
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python
上面使用了清华镜像源。