diff --git a/tools/github_actions_dependencies.sh b/tools/github_actions_dependencies.sh index 333f53d0050..9ac14002c37 100755 --- a/tools/github_actions_dependencies.sh +++ b/tools/github_actions_dependencies.sh @@ -5,7 +5,7 @@ EXTRA_ARGS="" if [ ! -z "$CONDA_ENV" ]; then echo "Uninstalling MNE for CONDA_ENV=${CONDA_ENV}" conda remove -c conda-forge --force -yq mne - pip uninstall -y mne + python -m pip uninstall -y mne elif [ ! -z "$CONDA_DEPENDENCIES" ]; then echo "Using Mamba to install CONDA_DEPENDENCIES=${CONDA_DEPENDENCIES}" mamba install -y $CONDA_DEPENDENCIES @@ -43,14 +43,14 @@ echo "" # for compat_minimal and compat_old, we don't want to --upgrade if [ ! -z "$CONDA_DEPENDENCIES" ]; then echo "Installing dependencies for conda" - pip install -r requirements_base.txt -r requirements_testing.txt + python -m pip install -r requirements_base.txt -r requirements_testing.txt else echo "Installing dependencies using pip" - pip install $STD_ARGS $EXTRA_ARGS -r requirements_base.txt -r requirements_testing.txt -r requirements_hdf5.txt + python -m pip install $STD_ARGS $EXTRA_ARGS -r requirements_base.txt -r requirements_testing.txt -r requirements_hdf5.txt fi echo "" if [ "${DEPS}" != "minimal" ]; then echo "Installing non-minimal dependencies" - pip install $STD_ARGS $EXTRA_ARGS -r requirements_testing_extra.txt + python -m pip install $STD_ARGS $EXTRA_ARGS -r requirements_testing_extra.txt fi