[Python] Python portable virtual environment

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

  1. Stack

    Stack Membro Participativo

    I have a desktop and a laptop I use during commute. Both have the same OS.

    What I want to do, is to work on a python project on the desktop, sync files, then work on the laptop, sync files, work on the desktop and so on.

    What I tried:

    • bare system python: it doesn't work, because something work with python 3.10, something works with python 3.13, so at least I need different interpreter for each project, different projects also use different libraries. some use pygame, other matplotlib
    • venv, virtualenv, uv: it doesn't work. i digged, and it seems it uses aboslute paths which bricks if I play them from another computer

    I likely need a competently designed virtual environment of some kind, that packages the executable and libraries with relative paths, so that e.g. it doesn't get confused if I move from D drive to F drive.

    Suggestions?

    Continue reading...

Compartilhe esta Página