Having trouble with rospy python3 installation on TX2

Hi, I am having trouble with installing rospy on python3. I need to make “import rospy” work on my TX2. Apparently, I have tried below methods and it didn’t work out well. Please help.

  1. packages installation
    sudo apt-get install rospy
    sudo apt-get install rospkg
    sudo apt-get install python-rospy
    sudo apt-get install python-rospkg
    sudo apt-get install python3-rospkg
    sudo apt-get install python3-catkin-pkg
    sudo apt-get install python3-rospkg
    sudo apt-get install python3-catkin_pkg
    sudo apt-get install python3-catkin-pkg-modules
    sudo apt-get install python3-rospkg-modules
    sudo apt-get install python3-rospkg
    sudo apt-get install python3-rospy
    sudo apt-get install python3-yaml

doesn’t work. Can anyone help??!!

Hi,

Please check this issue for the information:
https://github.com/ros/ros_comm/issues/1208

We can install python2 rospy with this command:

$ sudo apt-get install -y python-rospy

Thanks.