[Python] Activate uv environment in VS Code

Discussão em 'Python' iniciado por Stack, Junho 17, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to set up an environment in VS Code for a Python project using uv on Ubuntu. I have tried different sequences of actions but without success. Here is the latest one:

    uv init
    uv venv
    source .venv/bin/activate
    uv add numpy pandas statsmodels
    uv sync


    Which results in this warning and in no packages being installed:

    [​IMG]

    Which is the right way of creating a virtual environment?

    How do I best clean up the mess I made so far and reinitialize things correctly?

    Continue reading...

Compartilhe esta Página