@@ -54,36 +54,48 @@ $ sudo apt-get install python-pip python-dev
54
54
55
55
# Mac OS X
56
56
$ sudo easy_install pip
57
+ $ sudo easy_install --upgrade six
57
58
```
58
59
59
- Install TensorFlow :
60
+ Then, select the correct binary to install :
60
61
61
62
``` 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
64
65
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
68
69
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
72
89
```
73
90
74
- For python3 :
91
+ Install TensorFlow :
75
92
76
93
``` 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
83
96
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
87
99
```
88
100
89
101
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`:
127
139
$ virtualenv --system-site-packages ~ /tensorflow
128
140
```
129
141
130
- Activate the environment and use pip to install TensorFlow inside it :
142
+ Activate the environment:
131
143
132
144
``` bash
133
145
$ source ~ /tensorflow/bin/activate # If using bash
134
146
$ source ~ /tensorflow/bin/activate.csh # If using csh
135
147
(tensorflow)$ # Your prompt should change
148
+ ```
136
149
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:
139
151
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
143
155
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
147
159
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
149
162
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
154
169
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
157
172
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
161
176
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
164
189
```
165
190
166
191
With the Virtualenv environment activated, you can now
@@ -216,6 +241,9 @@ $ conda create -n tensorflow python=2.7
216
241
217
242
# Python 3.4
218
243
$ conda create -n tensorflow python=3.4
244
+
245
+ # Python 3.5
246
+ $ conda create -n tensorflow python=3.5
219
247
```
220
248
221
249
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`.
224
252
``` bash
225
253
$ source activate tensorflow
226
254
(tensorflow)$ # Your prompt should change
255
+ ```
227
256
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:
230
258
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
234
262
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
238
266
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
240
269
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
244
279
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
247
283
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
251
293
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
254
296
```
255
297
256
298
With the conda environment activated, you can now
0 commit comments