modly
modly copied to clipboard
pip install uninstalling other dependents when launching exe
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!
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