Unverified Commit 98b823c4 authored by Nikita Shulga's avatar Nikita Shulga Committed by GitHub
Browse files

Add numpy as explicit dependency to build_cmake.sh (#4987)

Otherwise, it `setuptools.py`  will try to install latest, which is not compatible with Python runtime older than 3.8

Fixes https://github.com/pytorch/vision/issues/4985
parent 8d25de7b
......@@ -42,7 +42,7 @@ else
PYTORCH_MUTEX_CONSTRAINT=''
fi
conda install -yq \pytorch=$PYTORCH_VERSION $CONDA_CUDATOOLKIT_CONSTRAINT $PYTORCH_MUTEX_CONSTRAINT $MKL_CONSTRAINT -c "pytorch-${UPLOAD_CHANNEL}"
conda install -yq \pytorch=$PYTORCH_VERSION $CONDA_CUDATOOLKIT_CONSTRAINT $PYTORCH_MUTEX_CONSTRAINT $MKL_CONSTRAINT numpy -c "pytorch-${UPLOAD_CHANNEL}"
TORCH_PATH=$(dirname $(python -c "import torch; print(torch.__file__)"))
if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment