A better fix for numpy.

This commit is contained in:
Christopher Anderson 2025-08-09 04:49:15 +10:00
parent 28fd4513fd
commit 709daeca63

View File

@ -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
pause 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