1.conda activate 虚拟环境
执行PY3之后报错:
Traceback (most recent call last):
File "/home/cgp/catkin_ws/src/rbx1/rbx1_nav/nodes/runopencv.py", line 3, in <module>
import rospy
File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/__init__.py", line 49, in <module>
from .client import spin, myargv, init_node, \
File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/client.py", line 52, in