Resolve travis failure. (#5445)

* Install dependencies by pip.
This commit is contained in:
Jiaming Yuan
2020-03-27 19:37:58 +08:00
committed by GitHub
parent 4942da64ae
commit 780de49ddb

View File

@@ -27,11 +27,12 @@ if [ ${TASK} == "python_test" ]; then
echo "-------------------------------"
conda activate python3
conda --version
python --version
conda install numpy scipy pandas matplotlib scikit-learn dask
python -m pip install graphviz pytest pytest-cov codecov
python -m pip install datatable
python -m pip install numpy scipy pandas matplotlib scikit-learn dask[complete]
python -m pytest -v --fulltrace -s tests/python --cov=python-package/xgboost || exit -1
codecov
fi