我在 ubuntu 16.04 和 python 3.5.2 下,我想安装 opencv。我按照以下链接中的说明一步一步进行操作:
http://cyaninfinite.com/tutorials/installing-opencv-in-ubuntu-for-python-3/
但是,我应该在 python3.5 中运行它(它不起作用),但它安装在 python2 中(它可以工作),我的安装有什么问题
编辑1
python2
import cv2 # works but it's not supposed to work because l specified to install in for python3.5
python3.5
import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'
但是它应该适用于 python3.5
**EDIT2**
python3.5 --version
Python 3.5.2
python3 --version
Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
**EDIT3**
python3.5-config --includes
-I/usr/include/python3.5m -I/usr/include/python3.5m