ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type
问题描述
Ubuntu16.04 安装了 ROS Kinetic 之后 Python3 不能 import cv2
(1)通过如下命令安装opencv:
$ pip install opencv-python
(2)使用 python 语句 import cv2 时出现如下错误:
/home/zhanglei/PycharmProjects/untitled/venv/bin/python /home/zhanglei/catkin_ws/src/beginner_tutorials/scripts/Map_Reducing