File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,23 @@ jobs:
2323 python-version : ' 3.10'
2424 - name : Install MONAI
2525 id : monai-install
26+ env :
27+ PIP_NO_CACHE_DIR : " 1"
28+ PIP_DISABLE_PIP_VERSION_CHECK : " 1"
2629 run : |
2730 find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
31+ df -h
2832 which python
2933 python -m pip install -U pip wheel
30- python -m pip install torch torchvision torchaudio
34+ # Force CPU-only PyTorch wheels so we don't download huge CUDA/nvidia-* wheels in CI.
35+ # Keep PyPI available for torch's dependencies.
36+ python -m pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple torch torchvision torchaudio
3137
3238 python -m pip install -r https://raw.githubusercontent.com/Project-MONAI/MONAI/dev/requirements-dev.txt
3339 python -m pip install -r requirements.txt
3440
35- BUILD_MONAI=0 python -m pip install git+https://github.com/Project-MONAI/MONAI#egg=MONAI
41+ # Avoid PEP517 build isolation (which can re-install torch and pull CUDA wheels).
42+ BUILD_MONAI=0 python -m pip install --no-build-isolation git+https://github.com/Project-MONAI/MONAI#egg=MONAI
3643 python -m pip list
3744 - name : Notebook quick check
3845 shell : bash
You can’t perform that action at this time.
0 commit comments