mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-21 20:00:17 +08:00
A better fix for numpy.
This commit is contained in:
parent
28fd4513fd
commit
709daeca63
15
fixnumpy.bat
15
fixnumpy.bat
@ -1,6 +1,13 @@
|
|||||||
@echo off
|
@echo off
|
||||||
call venv\scripts\activate
|
:: Install numpy silently
|
||||||
pip uninstall numpy -y --quiet
|
venv\Scripts\pip install --force-reinstall "numpy<2" --quiet
|
||||||
pip install numpy==1.26.4 --quiet
|
|
||||||
echo numpy 1.26.4 reinstalled.
|
:: 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
|
pause
|
||||||
Loading…
Reference in New Issue
Block a user