5
5
This guide is for the latest stable version of TensorFlow. For the
6
6
preview build * (nightly)* , use the pip package named
7
7
` 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
9
9
package named ` tensorflow-cpu ` .
10
10
11
11
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.
334
334
335
335
* macOS 10.12.6 (Sierra) or higher (64-bit)
336
336
337
- Note: While TensorFlow supports Apple Silicon (M1), Packages that include
337
+ Note: While TensorFlow supports Apple Silicon (M1), packages that include
338
338
custom C++ extensions for TensorFlow also need to be compiled for Apple M1.
339
339
Some packages, like
340
340
[tensorflow_decision_forests](https://www.tensorflow.org/decision_forests)
341
341
publish M1-compatible versions, but many packages don' t. To use those
342
342
libraries, you will have to use TensorFlow with x86 emulation and Rosetta.
343
343
344
344
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.
346
346
347
347
# ## 2. Check Python version
348
348
@@ -355,13 +355,21 @@ The following NVIDIA® software are only required for GPU support.
355
355
python3 -m pip --version
356
356
` ` `
357
357
358
- # ## 2 . Install Miniconda
358
+ # ## 3 . Install Miniconda
359
359
360
360
[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.
362
362
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:
365
373
366
374
```bash
367
375
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o Miniconda3-latest-MacOSX-x86_64.sh
0 commit comments