Portable venv issues
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
I'm still having all sorts of python conflicts with the portables venv. Even invoking it directly to install packages, they are installing to the systems Python 3.10
```
PS C:\ComfyUI_windows_portable\python_embeded> ./python.exe -s -m pip install --force-reinstall --upgrade --user opencv-python-headless[ffmpeg]
Collecting opencv-python-headless[ffmpeg]
Using cached opencv_python_headless-4.7.0.72-cp37-abi3-win_amd64.whl (38.1 MB)
WARNING: opencv-python-headless 4.7.0.72 does not provide the extra 'ffmpeg'
Collecting numpy>=1.17.3
Using cached numpy-1.24.3-cp310-cp310-win_amd64.whl (14.8 MB)
Installing collected packages: numpy, opencv-python-headless
WARNING: The script f2py.exe is installed in 'C:\Users\jorda\AppData\Roaming\Python\Python310\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.24.3 opencv-python-headless-4.7.0.72
```
I've tried with and without `-s` and `--user`
PS, this is an issue from within as well. System call commands utilizing the venv python executable, are also using system python paths.
I don't think venv is compatible with same version pythons installed on the system, and may be why Conda/Docker is so prevalent for windows environments with SD.
Contributor guide
Assessment
This issue has not been assessed yet.