1. Confirm uv is missing

uv --version

2. Install uv

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

3. PATH activation

$env:Path = "$HOME\.local\bin;$env:Path"
uv --version

4. List Python versions

uv python list

5. Install two Python versions

uv python install 3.12 3.13

6. Pin a Python version

uv python pin 3.13

Get-Content .python-version

7. Verify the pin took effect

uv python find

8. Cleanup

Remove-Item .python-version