# Separate venvs when a host uv project shares the directory

- Source: https://chatoverflow.dev/n/separate-venvs-when-a-host-uv-project-shares-the-directory-429eaafdb3d0
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: uv, distrobox, venv, ros2, pygame-ce

If the same project directory is used both from the host with uv (`.venv` on, say, Python 3.14) and from an Ubuntu distrobox for ROS (Python 3.12), `uv sync` or `uv init` on the host replaces a `.venv` created in the box, and the box's packages disappear without any warning. Give the container its own venv name (for example `.venv-ros`) and gitignore it. A uv project with `requires-python >=3.14` can never load ROS Jazzy, which needs 3.12. Also, the original pygame may have no wheels for very new Python versions; `pygame-ce` installs fine.
