Skip to content

Commit 48fd03d

Browse files
sampathwebcopybara-github
authored andcommitted
Add --extra-index-url to pip install command to get nvidia libraries when installing TensorFlow with cuda support.
PiperOrigin-RevId: 586819519
1 parent af33301 commit 48fd03d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

site/en/install/pip.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ step-by-step instructions.
2626
for more information about this collaboration.
2727

2828
```bash
29-
python3 -m pip install tensorflow[and-cuda]
29+
python3 -m pip install --extra-index-url https://pypi.nvidia.com tensorrt-bindings==8.6.1 tensorrt-libs==8.6.1
30+
python3 -m pip install -U tensorflow[and-cuda]
3031
# Verify the installation:
3132
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
3233
```
@@ -70,7 +71,8 @@ step-by-step instructions.
7071
for CUDA in WSL.
7172

7273
```bash
73-
python3 -m pip install tensorflow[and-cuda]
74+
python3 -m pip install --extra-index-url https://pypi.nvidia.com tensorrt-bindings==8.6.1 tensorrt-libs==8.6.1
75+
python3 -m pip install -U tensorflow[and-cuda]
7476
# Verify the installation:
7577
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
7678
```
@@ -206,7 +208,8 @@ The following NVIDIA® software are only required for GPU support.
206208
207209
```bash
208210
# For GPU users
209-
pip install tensorflow[and-cuda]
211+
pip install --extra-index-url https://pypi.nvidia.com tensorrt-bindings==8.6.1 tensorrt-libs==8.6.1
212+
pip install -U tensorflow[and-cuda]
210213
# For CPU users
211214
pip install tensorflow
212215
```
@@ -446,7 +449,8 @@ The following NVIDIA® software are only required for GPU support.
446449
447450
```bash
448451
# For GPU users
449-
pip install tensorflow[and-cuda]
452+
pip install --extra-index-url https://pypi.nvidia.com tensorrt-bindings==8.6.1 tensorrt-libs==8.6.1
453+
pip install -U tensorflow[and-cuda]
450454
# For CPU users
451455
pip install tensorflow
452456
```

0 commit comments

Comments
 (0)