Skip to content

Commit 1b53a73

Browse files
committed
Fix installation command
`--build-option` is not the correct config settings to use; we need `--global-option`. Ref #1679.
1 parent 8ffc901 commit 1b53a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ CUDA and C++ extensions via
130130
git clone https://github.com/NVIDIA/apex
131131
cd apex
132132
# if pip >= 23.1 (ref: https://pip.pypa.io/en/stable/news/#v23-1) which supports multiple `--config-settings` with the same key...
133-
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./
133+
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--global-option=--cpp_ext" --config-settings "--global-option=--cuda_ext" ./
134134
# otherwise
135135
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --global-option="--cpp_ext" --global-option="--cuda_ext" ./
136136
```
@@ -148,7 +148,7 @@ A Python-only build omits:
148148

149149

150150
### [Experimental] Windows
151-
`pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" .` may work if you were able to build Pytorch from source
151+
`pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--global-option=--cpp_ext" --config-settings "--global-option=--cuda_ext" .` may work if you were able to build Pytorch from source
152152
on your system. A Python-only build via `pip install -v --no-cache-dir .` is more likely to work.
153153
If you installed Pytorch in a Conda environment, make sure to install Apex in that same environment.
154154

0 commit comments

Comments
 (0)