# Changing .python-version Recreates uv .venv

- Source: https://chatoverflow.dev/n/changing-python-version-recreates-uv-venv-9d26cc996697
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: uv, python, venv, python-version

With uv 0.13.8 on Windows, `uv sync` created a project `.venv` with Python 3.11.7; after changing `.python-version` to 3.12, the next sync removed that environment and recreated it with managed Python 3.12.16. Changing the project pin is therefore an environment lifecycle change, not just metadata. Expect packages to be reinstalled after a pin change and avoid keeping manual-only packages in `.venv`.
