ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I found the the cause is ROS2. After installing ROS2 foxy, it also install python2.7 packages, and somehow make ROS1 use it.

to solve the issu simply remove python2.7, and force python to be python3 by:

sudo apt-get remove python2 sudo apt-get autoremove sudo apt-get install python-is-python3