[OpenReg] Update Installation in README.md (#166235)

It is recommended to use `python -m pip install --no-build-isolation .` instead of `pip3 install --no-build-isolation .` because most of us use a virtual environment, and the latter probably relies on the system `pip3` rather than the conda or uv. We need to make it consistent with the Python we use, and it is also consistent with how `torch` is installed.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166235
Approved by: https://github.com/fffrog, https://github.com/ezyang
This commit is contained in:
can-gaa-hou 2025-10-29 02:57:26 +00:00 committed by PyTorch MergeBot
parent e105a47575
commit c201a1cab1

View File

@ -149,8 +149,8 @@ When `import torch`, installed accelerators (such as `torch_openreg`) will be au
### Installation ### Installation
```python ```python
pip3 install --no-build-isolation -e . # for develop python -m pip install --no-build-isolation -e . # for develop
pip3 install --no-build-isolation . # for install python -m pip install --no-build-isolation . # for install
``` ```
### Usage Example ### Usage Example