@iStarLee
2020-01-09T21:10:35.000000Z
字数 361
阅读 316
python开发工具
# https://www.jianshu.com/p/5f60d11a1a86
pip3 install --user catkin_pkg pyyaml empy rospkg numpy
主要原因是安装了ros,ros中自带cv2是python2中调用的,所以要将ros中的路径放到最后
import os
import sys
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages')
import cv2