ros2_documentation icon indicating copy to clipboard operation
ros2_documentation copied to clipboard

Update Using-Python-Packages.rst instructions for virtual environments

Open marinarasauced opened this issue 5 months ago • 1 comments

Description

Current instructions for running Python nodes using virtual environments informs users to create a venv in a Colcon workspace, pip install the packages, and then run colcon build. However, these instructions appear outdated when testing using at least Humble, Jazzy, and Kilted.

The suggested changes provide current instructions for running Python nodes using virtual environments.

Creating the virtual environment with the --system-site-packages option works as a replacement for manually installing several system packages needed by ROS, but is not favorable in case of dependency conflicts.

Did you use Generative AI?

No

marinarasauced avatar Jul 20 '25 21:07 marinarasauced

This pull request has been mentioned on Open Robotics Discourse. There might be relevant details there:

https://discourse.openrobotics.org/t/ros-news-for-the-week-of-october-6th-2025/50487/1

ros-discourse avatar Oct 10 '25 19:10 ros-discourse