[BE][Easy] split build system requirements.txt to a separate file (#158111)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/158111
Approved by: https://github.com/ezyang
This commit is contained in:
Xuehai Pan
2025-07-15 13:05:17 +08:00
committed by PyTorch MergeBot
parent e92e3eaf4e
commit 61a7b09ef3
10 changed files with 25 additions and 20 deletions

View File

@ -294,14 +294,14 @@ Install PyTorch
```bash
export CMAKE_PREFIX_PATH="${CONDA_PREFIX:-'$(dirname $(which conda))/../'}:${CMAKE_PREFIX_PATH}"
python -m pip install -r requirements.txt
python -m pip install -r requirements-build.txt
python -m pip install --no-build-isolation -v -e .
```
**On macOS**
```bash
python -m pip install -r requirements.txt
python -m pip install -r requirements-build.txt
python -m pip install --no-build-isolation -v -e .
```