Skip to content

Commit 9342efe

Browse files
committed
fix dependency install
1 parent 1c96bb5 commit 9342efe

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

applications/mlflow/Taskfile.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,11 +901,13 @@ tasks:
901901
echo "Installing Python dependencies directly..."
902902
# Try to use binary wheels whenever possible
903903
python -m pip install --upgrade pip wheel setuptools
904-
# Install the required packages directly
905-
python -m pip install mlflow numpy pandas scikit-learn pytest requests || {
906-
echo "❌ Failed to install dependencies. Trying with --only-binary approach..."
907-
# Try installing packages that commonly have build issues with binary-only
908-
python -m pip install --only-binary=numpy,pandas,pyarrow,scikit-learn mlflow numpy pandas scikit-learn pytest requests
904+
# First install pandas with only-binary to avoid compilation issues
905+
python -m pip install --only-binary=pandas pandas
906+
# Then install the rest of the packages
907+
python -m pip install mlflow numpy scikit-learn pytest requests || {
908+
echo "❌ Failed to install dependencies. Trying with --only-binary approach for all packages..."
909+
# Try installing all packages that commonly have build issues with binary-only
910+
python -m pip install --only-binary=:all: mlflow numpy pandas scikit-learn pytest requests
909911
}
910912
else
911913
echo "Running in virtual environment $VIRTUAL_ENV, skipping dependency installation"

0 commit comments

Comments
 (0)