Skip to content

Commit 810e2e5

Browse files
pcoetcopybara-github
authored andcommitted
Fix typos and misleading GPU info in pip install instructions for MacOS.
PiperOrigin-RevId: 547934602
1 parent 4f92636 commit 810e2e5

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

site/en/install/pip.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
This guide is for the latest stable version of TensorFlow. For the
66
preview build *(nightly)*, use the pip package named
77
`tf-nightly`. Refer to [these tables](./source#tested_build_configurations) for
8-
older TensorFlow version requirements. For the CPU-only build use the pip
8+
older TensorFlow version requirements. For the CPU-only build, use the pip
99
package named `tensorflow-cpu`.
1010

1111
Here are the quick versions of the install commands. Scroll down for the
@@ -334,15 +334,15 @@ The following NVIDIA® software are only required for GPU support.
334334
335335
* macOS 10.12.6 (Sierra) or higher (64-bit)
336336
337-
Note: While TensorFlow supports Apple Silicon (M1), Packages that include
337+
Note: While TensorFlow supports Apple Silicon (M1), packages that include
338338
custom C++ extensions for TensorFlow also need to be compiled for Apple M1.
339339
Some packages, like
340340
[tensorflow_decision_forests](https://www.tensorflow.org/decision_forests)
341341
publish M1-compatible versions, but many packages don't. To use those
342342
libraries, you will have to use TensorFlow with x86 emulation and Rosetta.
343343

344344
Currently there is no official GPU support for running TensorFlow on
345-
MacOS. The following is instructions are for running on CPU.
345+
MacOS. The following instructions are for running on CPU.
346346

347347
### 2. Check Python version
348348

@@ -355,13 +355,21 @@ The following NVIDIA® software are only required for GPU support.
355355
python3 -m pip --version
356356
```
357357

358-
### 2. Install Miniconda
358+
### 3. Install Miniconda
359359

360360
[Miniconda](https://docs.conda.io/en/latest/miniconda.html){:.external}
361-
is the recommended approach for installing TensorFlow with GPU support.
361+
is the recommended approach for installing TensorFlow.
362362
It creates a separate environment to avoid changing any installed
363-
software in your system. This is also the easiest way to install the required
364-
software especially for the GPU setup.
363+
software in your system.
364+
365+
Note: Miniconda is not a requirement for running TensorFlow on CPU. If you'd
366+
prefer to create a virtual environment using
367+
[venv](https://docs.python.org/3/library/venv.html) or
368+
[Virtualenv](https://virtualenv.pypa.io/en/latest/), you can do so. Just
369+
adjust the installation steps accordingly, and then follow the instructions
370+
to install TensorFlow using pip.
371+
372+
Install Miniconda:
365373
366374
```bash
367375
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o Miniconda3-latest-MacOSX-x86_64.sh

0 commit comments

Comments
 (0)