Skip to content

Commit 9425f82

Browse files
committed
Reorganize installation instructions
Avoid too much duplication (still, three sections are almost copied) when specifying installation instructions. Added 3.5 linux binaries.
1 parent a3a6cbb commit 9425f82

File tree

1 file changed

+101
-59
lines changed

1 file changed

+101
-59
lines changed

tensorflow/g3doc/get_started/os_setup.md

+101-59
Original file line numberDiff line numberDiff line change
@@ -54,36 +54,48 @@ $ sudo apt-get install python-pip python-dev
5454

5555
# Mac OS X
5656
$ sudo easy_install pip
57+
$ sudo easy_install --upgrade six
5758
```
5859

59-
Install TensorFlow:
60+
Then, select the correct binary to install:
6061

6162
```bash
62-
# Ubuntu/Linux 64-bit, CPU only, Python 2.7:
63-
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
63+
# Ubuntu/Linux 64-bit, CPU only, Python 2.7
64+
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
6465

65-
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7. Requires CUDA toolkit 7.5 and CuDNN v4.
66-
# For other versions, see "Install from sources" below.
67-
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
66+
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
67+
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
68+
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
6869

69-
# Mac OS X, CPU only:
70-
$ sudo easy_install --upgrade six
71-
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
70+
# Mac OS X, CPU only, Python 2.7:
71+
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
72+
73+
# Ubuntu/Linux 64-bit, CPU only, Python 3.4
74+
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
75+
76+
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
77+
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
78+
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
79+
80+
# Ubuntu/Linux 64-bit, CPU only, Python 3.5
81+
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
82+
83+
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.5
84+
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
85+
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
86+
87+
# Mac OS X, CPU only, Python 3.4 or 3.5:
88+
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
7289
```
7390

74-
For python3:
91+
Install TensorFlow:
7592

7693
```bash
77-
# Ubuntu/Linux 64-bit, CPU only, Python 3.4:
78-
$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
79-
80-
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4. Requires CUDA toolkit 7.5 and CuDNN v4.
81-
# For other versions, see "Install from sources" below.
82-
$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
94+
# Python 2
95+
$ sudo pip install --upgrade $TF_BINARY_URL
8396

84-
# Mac OS X, CPU only:
85-
$ sudo easy_install --upgrade six
86-
$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
97+
# Python 3
98+
$ sudo pip3 install --upgrade $TF_BINARY_URL
8799
```
88100

89101
NOTE: If you are upgrading from a previous installation of TensorFlow < 0.7.1,
@@ -127,40 +139,53 @@ Create a Virtualenv environment in the directory `~/tensorflow`:
127139
$ virtualenv --system-site-packages ~/tensorflow
128140
```
129141

130-
Activate the environment and use pip to install TensorFlow inside it:
142+
Activate the environment:
131143

132144
```bash
133145
$ source ~/tensorflow/bin/activate # If using bash
134146
$ source ~/tensorflow/bin/activate.csh # If using csh
135147
(tensorflow)$ # Your prompt should change
148+
```
136149

137-
# Ubuntu/Linux 64-bit, CPU only, Python 2.7:
138-
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
150+
Now, install TensorFlow just as you would for a regular Pip installation. First select the correct binary to install:
139151

140-
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7. Requires CUDA toolkit 7.5 and CuDNN v4.
141-
# For other versions, see "Install from sources" below.
142-
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
152+
```bash
153+
# Ubuntu/Linux 64-bit, CPU only, Python 2.7
154+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
143155

144-
# Mac OS X, CPU only:
145-
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
146-
```
156+
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
157+
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
158+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
147159

148-
and again for python3:
160+
# Mac OS X, CPU only, Python 2.7:
161+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
149162

150-
```bash
151-
$ source ~/tensorflow/bin/activate # If using bash
152-
$ source ~/tensorflow/bin/activate.csh # If using csh
153-
(tensorflow)$ # Your prompt should change
163+
# Ubuntu/Linux 64-bit, CPU only, Python 3.4
164+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
165+
166+
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
167+
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
168+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
154169

155-
# Ubuntu/Linux 64-bit, CPU only, Python 3.4:
156-
(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
170+
# Ubuntu/Linux 64-bit, CPU only, Python 3.5
171+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
157172

158-
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4. Requires CUDA toolkit 7.5 and CuDNN v4.
159-
# For other versions, see "Install from sources" below.
160-
(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
173+
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.5
174+
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
175+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
161176

162-
# Mac OS X, CPU only:
163-
(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
177+
# Mac OS X, CPU only, Python 3.4 or 3.5:
178+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
179+
```
180+
181+
Finally install TensorFlow:
182+
183+
```bash
184+
# Python 2
185+
(tensorflow)$ sudo pip install --upgrade $TF_BINARY_URL
186+
187+
# Python 3
188+
(tensorflow)$ sudo pip3 install --upgrade $TF_BINARY_URL
164189
```
165190

166191
With the Virtualenv environment activated, you can now
@@ -216,6 +241,9 @@ $ conda create -n tensorflow python=2.7
216241

217242
# Python 3.4
218243
$ conda create -n tensorflow python=3.4
244+
245+
# Python 3.5
246+
$ conda create -n tensorflow python=3.5
219247
```
220248

221249
Activate the environment and use pip to install TensorFlow inside it.
@@ -224,33 +252,47 @@ Use the `--ignore-installed` flag to prevent errors about `easy_install`.
224252
```bash
225253
$ source activate tensorflow
226254
(tensorflow)$ # Your prompt should change
255+
```
227256

228-
# Ubuntu/Linux 64-bit, CPU only, Python 2.7:
229-
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
257+
Now, install TensorFlow just as you would for a regular Pip installation. First select the correct binary to install:
230258

231-
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7. Requires CUDA toolkit 7.5 and CuDNN v4.
232-
# For other versions, see "Install from sources" below.
233-
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
259+
```bash
260+
# Ubuntu/Linux 64-bit, CPU only, Python 2.7
261+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
234262

235-
# Mac OS X, CPU only:
236-
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
237-
```
263+
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
264+
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
265+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
238266

239-
and again for Python 3:
267+
# Mac OS X, CPU only, Python 2.7:
268+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
240269

241-
```bash
242-
$ source activate tensorflow
243-
(tensorflow)$ # Your prompt should change
270+
# Ubuntu/Linux 64-bit, CPU only, Python 3.4
271+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
272+
273+
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
274+
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
275+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
276+
277+
# Ubuntu/Linux 64-bit, CPU only, Python 3.5
278+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
244279

245-
# Ubuntu/Linux 64-bit, CPU only, Python 3.4:
246-
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
280+
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.5
281+
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
282+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
247283

248-
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4. Requires CUDA toolkit 7.5 and CuDNN v4.
249-
# For other versions, see "Install from sources" below.
250-
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
284+
# Mac OS X, CPU only, Python 3.4 or 3.5:
285+
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
286+
```
287+
288+
Finally install TensorFlow:
289+
290+
```bash
291+
# Python 2
292+
(tensorflow)$ sudo pip install --upgrade $TF_BINARY_URL
251293

252-
# Mac OS X, CPU only:
253-
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
294+
# Python 3
295+
(tensorflow)$ sudo pip3 install --upgrade $TF_BINARY_URL
254296
```
255297

256298
With the conda environment activated, you can now

0 commit comments

Comments
 (0)