Skip to content

Commit af0382a

Browse files
authored
Update command to python for Windows Native
`python3` is not working on Windows Native. Changed `python3` to `python` to verify installation.
1 parent 8f431e2 commit af0382a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/en/install/pip.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ step-by-step instructions.
5454
```bash
5555
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
5656
# Anything above 2.10 is not supported on the GPU on Windows Native
57-
python3 -m pip install "tensorflow<2.11"
57+
python -m pip install "tensorflow<2.11"
5858
# Verify install:
59-
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
59+
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
6060
```
6161

6262
* {Windows WSL2}
@@ -497,15 +497,15 @@ The following NVIDIA® software are only required for GPU support.
497497
Verify the CPU setup:
498498
499499
```bash
500-
python3 -c "import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
500+
python -c "import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
501501
```
502502
503503
If a tensor is returned, you've installed TensorFlow successfully.
504504

505505
Verify the GPU setup:
506506

507507
```bash
508-
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
508+
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
509509
```
510510

511511
If a list of GPU devices is returned, you've installed TensorFlow

0 commit comments

Comments
 (0)