Fix FileNotFoundError when installing torch on Windows PCs without powershell in their system PATH variable

This commit is contained in:
cmdr2 2025-04-25 20:45:14 +05:30
parent 1ed27e63f9
commit adfe24fdd0
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ call where python
call python --version call python --version
@rem this is outside check_modules.py to ensure that the required version of torchruntime is present @rem this is outside check_modules.py to ensure that the required version of torchruntime is present
call python -m pip install -q "torchruntime>=1.16.2" call python -m pip install -q "torchruntime>=1.17.0"
call python scripts\check_modules.py --launch-uvicorn call python scripts\check_modules.py --launch-uvicorn
pause pause

View File

@ -51,7 +51,7 @@ if [ -e "src" ]; then mv src src-old; fi
if [ -e "ldm" ]; then mv ldm ldm-old; fi if [ -e "ldm" ]; then mv ldm ldm-old; fi
# this is outside check_modules.py to ensure that the required version of torchruntime is present # this is outside check_modules.py to ensure that the required version of torchruntime is present
python -m pip install -q "torchruntime>=1.16.2" python -m pip install -q "torchruntime>=1.17.0"
cd .. cd ..
# Download the required packages # Download the required packages