mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 00:20:18 +01:00
[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:
parent
e105a47575
commit
c201a1cab1
|
|
@ -149,8 +149,8 @@ When `import torch`, installed accelerators (such as `torch_openreg`) will be au
|
|||
### Installation
|
||||
|
||||
```python
|
||||
pip3 install --no-build-isolation -e . # for develop
|
||||
pip3 install --no-build-isolation . # for install
|
||||
python -m pip install --no-build-isolation -e . # for develop
|
||||
python -m pip install --no-build-isolation . # for install
|
||||
```
|
||||
|
||||
### Usage Example
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user