Skip to content

Commit

Permalink
Use numpy 1.x with old pandas.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcurtin committed Sep 5, 2024
1 parent ffc85f8 commit ab6c508
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build_mlpack.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
rem Build mlpack's Python bindings on a Windows system.

pip install cython numpy delvewheel wheel setuptools
rem Pandas 2.1.0 and newer aren't supported on Win32 anymore, so we use an old version.
if "%WIN_ARCH%" == "Win32" pip install pandas==%PANDAS_VER%
if not "%WIN_ARCH%" == "Win32" pip install pandas
pip install cython delvewheel wheel setuptools
rem Pandas 2.1.0 and newer aren't supported on Win32 anymore, so we use an old
rem version. We also need to use numpy 1.x.
if "%WIN_ARCH%" == "Win32" numpy<2 pip install pandas==%PANDAS_VER%
if not "%WIN_ARCH%" == "Win32" pip install numpy pandas

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

Expand Down

0 comments on commit ab6c508

Please sign in to comment.