modly icon indicating copy to clipboard operation
modly copied to clipboard

pip install uninstalling other dependents when launching exe

Open Dejawhy opened this issue 8 months ago • 1 comments

I think the beta is installing/updating packages in my normal Python setup instead of using its own environment.

After running it, one of my existing packages disappeared from pip freeze, and pip started warning about a broken leftover package entry.

This is what I checked:

python -m pip --version
python -c "import sys; print(sys.executable); print(sys.prefix)"
Output showed it was using my regular Python install:

C:\Program Files\Python311\python.exe
C:\Program Files\Python311
Then I compared my installed packages before and after:

python -m pip freeze > before_deps.txt
python -m pip freeze > after_deps.txt
Compare-Object (Get-Content .\before_deps.txt) (Get-Content .\after_deps.txt)
This showed:

numpy==2.2.6 <=
And pip started warning with:

WARNING: Ignoring invalid distribution ~umpy (C:\Users\dejaw\AppData\Roaming\Python\Python311\site-packages)
So it looks like the beta may be running pip against the user's existing Python environment and may have uninstalled/replaced packages there.

Could you switch this to use its own isolated venv or private Python environment instead of touching the user's installed packages?

Something like:

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt

this way it never touches system dependents and uses its own build env!

Dejawhy avatar Mar 20 '26 18:03 Dejawhy

I see !

I’ve reworked the dependency management system for the app. In the next patch, it will be fixed there shouldn’t be any more venv issues.

Thanks you

lightningpixel avatar Mar 20 '26 21:03 lightningpixel