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

ROS with Python 3.5 in virtual environment

asked 2020-02-21 12:51:43 -0600

kane_choigo gravatar image

Hello, I'm using with ROS kinetic on Ubuntu 16.04.

As far as I know, almost all the packages of ROS only are supported by Python 2.7.

But I recently created virtual Python 3.5 environment and make it run roscore.

I also checked it also can import rospy module.

In fact, I'm planning to publish sensor data from python 2.7 env to 3.5 env.

As I've heared the virtual environment is the isolated, I'm afraid I can't.

So I thought that, to run all the node filed in Python 3.5 virtual environment since I just can run roscore in that env.

Unfortunately, I do not have that packages in my hand now so I can't check it right now...

Anyway, would my idea make sense?

If anyone who've worked in Python3 env, would you please give me a helpful advice?

Thanks in advance :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-02-21 13:16:04 -0600

achille gravatar image

Even though ROS kinetic might run with Python3, most packages released for Kinetic are py2.7 only and will probably not work. If you want to use Python3, consider using ROS Melodic which has recommended package support for py3 or ROS2.

See also #q270569 and related questions for more details.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-02-21 12:51:43 -0600

Seen: 978 times

Last updated: Feb 21 '20