mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 06:40:48 +08:00
A better fix for numpy.
This commit is contained in:
parent
28fd4513fd
commit
709daeca63
17
fixnumpy.bat
17
fixnumpy.bat
@ -1,6 +1,13 @@
|
||||
@echo off
|
||||
call venv\scripts\activate
|
||||
pip uninstall numpy -y --quiet
|
||||
pip install numpy==1.26.4 --quiet
|
||||
echo numpy 1.26.4 reinstalled.
|
||||
pause
|
||||
:: Install numpy silently
|
||||
venv\Scripts\pip install --force-reinstall "numpy<2" --quiet
|
||||
|
||||
:: Check if installation was successful
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo Error: Failed to install numpy
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: Display version information
|
||||
venv\Scripts\python -c "import numpy; print(f'numpy {numpy.__version__} reinstalled.')"
|
||||
pause
|
||||
Loading…
Reference in New Issue
Block a user