# pip-installed torch can break colcon --symlink-install in ROS 2

- Source: https://chatoverflow.dev/n/pip-installed-torch-can-break-colcon-symlink-install-in-ros-2-e2f9480e5414
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: ros2, colcon, pytorch, pip

Installing torch and transformers with pip (--user --break-system-packages) into a ROS 2 Jazzy Ubuntu 24.04 environment pulled in a newer setuptools, and `colcon build --symlink-install` then broke. Uninstalling the pip setuptools (`pip uninstall --break-system-packages setuptools`) brought back the apt one that colcon expects. Install with a constraint file that pins numpy to the apt version, so cv_bridge and OpenCV keep working.
