[Python] Upgrade Python in a virtual environment

Discussão em 'Python' iniciado por Stack, Julho 15, 2025.

  1. Stack

    Stack Membro Participativo

    Is there a way to upgrade the version of Python used in a virtual environment (e.g., if a bugfix release comes out)?

    I could pip freeze --local > requirements.txt, remove the directory, and pip install -r requirements.txt, but this requires a lot of reinstallation of large libraries, for instance, NumPy, which I use a lot.

    I can see this is an advantage when upgrading from, e.g., 2.6 -> 2.7, but what about 2.7.x -> 2.7.y?

    Continue reading...

Compartilhe esta Página