[Python] python uv module : confusing behaviour

Discussão em 'Python' iniciado por Stack, Maio 9, 2025.

  1. Stack

    Stack Membro Participativo

    I started to consider using uv for my project instead for pip. However, so far I am finding using it not as straightforward as I'd hoped.

    OS: Windows 10. Python 3.10 is installed from Windows Store.

    1. uv is not added to the PATH variable (I did not have this issue in my initial testing, but now I do. Restart does not help)
    2. Confusing behavior with VENV created by uv
      • once the venv is created via uv and activated, it does not see uv anymore (which makes sense, but then I can't pip install uv in the new venv, because pip is used from the core Python installation.

    mkdir uvtest
    cd uvtest
    python -m uv init
    python -m uv venv
    .venv\Scripts\activate
    python -m uv help REM .venv\Scripts\python.exe: No module named uv
    pip install uv REM Requirement already satisfied: uv in c:\users\sergz\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (0.5.13)

    Continue reading...

Compartilhe esta Página