提交 9425f822 编写于 作者: M Martin Wicke

Reorganize installation instructions

Avoid too much duplication (still, three sections are almost copied) when specifying installation instructions. Added 3.5 linux binaries.
上级 a3a6cbbe
...@@ -54,36 +54,48 @@ $ sudo apt-get install python-pip python-dev ...@@ -54,36 +54,48 @@ $ sudo apt-get install python-pip python-dev
# Mac OS X # Mac OS X
$ sudo easy_install pip $ sudo easy_install pip
$ sudo easy_install --upgrade six
``` ```
Install TensorFlow: Then, select the correct binary to install:
```bash ```bash
# Ubuntu/Linux 64-bit, CPU only, Python 2.7: # Ubuntu/Linux 64-bit, CPU only, Python 2.7
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7. Requires CUDA toolkit 7.5 and CuDNN v4. # Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
# For other versions, see "Install from sources" below. # Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
# Mac OS X, CPU only: # Mac OS X, CPU only, Python 2.7:
$ sudo easy_install --upgrade six $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.4
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.5
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.5
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
# Mac OS X, CPU only, Python 3.4 or 3.5:
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
``` ```
For python3: Install TensorFlow:
```bash ```bash
# Ubuntu/Linux 64-bit, CPU only, Python 3.4: # Python 2
$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl $ sudo pip install --upgrade $TF_BINARY_URL
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4. Requires CUDA toolkit 7.5 and CuDNN v4.
# For other versions, see "Install from sources" below.
$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
# Mac OS X, CPU only: # Python 3
$ sudo easy_install --upgrade six $ sudo pip3 install --upgrade $TF_BINARY_URL
$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
``` ```
NOTE: If you are upgrading from a previous installation of TensorFlow < 0.7.1, 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,40 +139,53 @@ Create a Virtualenv environment in the directory `~/tensorflow`:
$ virtualenv --system-site-packages ~/tensorflow $ virtualenv --system-site-packages ~/tensorflow
``` ```
Activate the environment and use pip to install TensorFlow inside it: Activate the environment:
```bash ```bash
$ source ~/tensorflow/bin/activate # If using bash $ source ~/tensorflow/bin/activate # If using bash
$ source ~/tensorflow/bin/activate.csh # If using csh $ source ~/tensorflow/bin/activate.csh # If using csh
(tensorflow)$ # Your prompt should change (tensorflow)$ # Your prompt should change
```
# Ubuntu/Linux 64-bit, CPU only, Python 2.7: Now, install TensorFlow just as you would for a regular Pip installation. First select the correct binary to install:
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7. Requires CUDA toolkit 7.5 and CuDNN v4. ```bash
# For other versions, see "Install from sources" below. # Ubuntu/Linux 64-bit, CPU only, Python 2.7
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
# Mac OS X, CPU only: # Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl # Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
``` (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
and again for python3: # Mac OS X, CPU only, Python 2.7:
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
```bash # Ubuntu/Linux 64-bit, CPU only, Python 3.4
$ source ~/tensorflow/bin/activate # If using bash (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
$ source ~/tensorflow/bin/activate.csh # If using csh
(tensorflow)$ # Your prompt should change # Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.4: # Ubuntu/Linux 64-bit, CPU only, Python 3.5
(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4. Requires CUDA toolkit 7.5 and CuDNN v4. # Ubuntu/Linux 64-bit, GPU enabled, Python 3.5
# For other versions, see "Install from sources" below. # Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
# Mac OS X, CPU only: # Mac OS X, CPU only, Python 3.4 or 3.5:
(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
```
Finally install TensorFlow:
```bash
# Python 2
(tensorflow)$ sudo pip install --upgrade $TF_BINARY_URL
# Python 3
(tensorflow)$ sudo pip3 install --upgrade $TF_BINARY_URL
``` ```
With the Virtualenv environment activated, you can now With the Virtualenv environment activated, you can now
...@@ -216,6 +241,9 @@ $ conda create -n tensorflow python=2.7 ...@@ -216,6 +241,9 @@ $ conda create -n tensorflow python=2.7
# Python 3.4 # Python 3.4
$ conda create -n tensorflow python=3.4 $ conda create -n tensorflow python=3.4
# Python 3.5
$ conda create -n tensorflow python=3.5
``` ```
Activate the environment and use pip to install TensorFlow inside it. 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,33 +252,47 @@ Use the `--ignore-installed` flag to prevent errors about `easy_install`.
```bash ```bash
$ source activate tensorflow $ source activate tensorflow
(tensorflow)$ # Your prompt should change (tensorflow)$ # Your prompt should change
```
# Ubuntu/Linux 64-bit, CPU only, Python 2.7: Now, install TensorFlow just as you would for a regular Pip installation. First select the correct binary to install:
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7. Requires CUDA toolkit 7.5 and CuDNN v4. ```bash
# For other versions, see "Install from sources" below. # Ubuntu/Linux 64-bit, CPU only, Python 2.7
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
# Mac OS X, CPU only: # Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl # Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
``` (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
and again for Python 3: # Mac OS X, CPU only, Python 2.7:
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
```bash # Ubuntu/Linux 64-bit, CPU only, Python 3.4
$ source activate tensorflow (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
(tensorflow)$ # Your prompt should change
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.5
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.4: # Ubuntu/Linux 64-bit, GPU enabled, Python 3.5
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl # Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below.
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp35-cp35m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4. Requires CUDA toolkit 7.5 and CuDNN v4. # Mac OS X, CPU only, Python 3.4 or 3.5:
# For other versions, see "Install from sources" below. (tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl ```
Finally install TensorFlow:
```bash
# Python 2
(tensorflow)$ sudo pip install --upgrade $TF_BINARY_URL
# Mac OS X, CPU only: # Python 3
(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl (tensorflow)$ sudo pip3 install --upgrade $TF_BINARY_URL
``` ```
With the conda environment activated, you can now With the conda environment activated, you can now
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册