fix: prevent user-site package leakage

This commit is contained in:
tom-m 2026-05-18 03:14:44 +09:00 committed by GitHub
parent 9f2c1ed7e9
commit f4f7774aa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,15 @@
set "BASE=%~dp0"
set PYTHONNOUSERSITE=1
set PYTHONPATH=
set PYTHONHOME=
set "USERPROFILE=%BASE%user_profile_cache"
set "HOME=%BASE%user_profile_cache"
set "HF_HOME=%BASE%user_profile_cache\huggingface"
set "TORCH_HOME=%BASE%user_profile_cache\torch"
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
echo If you see this and ComfyUI did not start try updating your Nvidia Drivers to the latest. If you get a c10.dll error you need to install vc redist that you can find: https://aka.ms/vc14/vc_redist.x64.exe
pause