Merge pull request #250 from sfinktah/sfink-better-fix-for-numpy

A better fix for numpy.
This commit is contained in:
patientx 2025-08-10 22:15:50 +03:00 committed by GitHub
commit 83bcc75cda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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