Skip to content

Commit 2409064

Browse files
committed
Try to be more specific about numpy version.
1 parent acb5cd8 commit 2409064

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_mlpack.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ rem Build mlpack's Python bindings on a Windows system.
22

33
pip install cython delvewheel wheel setuptools
44
rem Pandas 2.1.0 and newer aren't supported on Win32 anymore, so we use an old
5-
rem version. We also need to use numpy 1.x.
6-
if "%WIN_ARCH%" == "Win32" pip install "numpy<2" "pandas==%PANDAS_VER%"
5+
rem version. We also need to use numpy 1.x, but not too new because that will
6+
rem require a version of gcc that we won't have.
7+
if "%WIN_ARCH%" == "Win32" pip install "numpy==1.26.0" "pandas==%PANDAS_VER%"
78
if not "%WIN_ARCH%" == "Win32" pip install numpy pandas
89

910
python -c "import pandas; print(pandas.__version__)"

0 commit comments

Comments
 (0)