编程语言
首页 > 编程语言> > anaconda中的python3环境与ros公用时的问题

anaconda中的python3环境与ros公用时的问题

作者:互联网

Q1:ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type
使用https://blog.csdn.net/Jolen_xie/article/details/121634091?spm=1001.2014.3001.5501
Q2:但是出现ModuleNotFoundError: No module named ‘rospy’

import sys
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')

放到

import rospy

的后面

import rospy
import sys
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
import cv2

标签:dist,lib,sys,anaconda,import,kinetic,ros,python3
来源: https://blog.csdn.net/Jolen_xie/article/details/121678247