diff --git a/tensorflow/g3doc/get_started/os_setup.md b/tensorflow/g3doc/get_started/os_setup.md index e1bb94d714f85d8b32ff6b543ace26ba8f3e230d..b97305e35b88560c98f70fdb305fc202ffa9041e 100644 --- a/tensorflow/g3doc/get_started/os_setup.md +++ b/tensorflow/g3doc/get_started/os_setup.md @@ -54,36 +54,48 @@ $ sudo apt-get install python-pip python-dev # Mac OS X $ sudo easy_install pip +$ sudo easy_install --upgrade six ``` -Install TensorFlow: +Then, select the correct binary to install: ```bash -# 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 +# Ubuntu/Linux 64-bit, CPU only, Python 2.7 +$ 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. -# 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 +# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7 +# 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-cp27-none-linux_x86_64.whl -# Mac OS X, CPU only: -$ sudo easy_install --upgrade six -$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl +# Mac OS X, CPU only, Python 2.7: +$ export TF_BINARY_URL=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 -# Ubuntu/Linux 64-bit, CPU only, Python 3.4: -$ sudo pip3 install --upgrade 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. -$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp34-cp34m-linux_x86_64.whl +# Python 2 +$ sudo pip install --upgrade $TF_BINARY_URL -# Mac OS X, CPU only: -$ sudo easy_install --upgrade six -$ sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl +# Python 3 +$ sudo pip3 install --upgrade $TF_BINARY_URL ``` 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`: $ virtualenv --system-site-packages ~/tensorflow ``` -Activate the environment and use pip to install TensorFlow inside it: +Activate the environment: ```bash $ source ~/tensorflow/bin/activate # If using bash $ source ~/tensorflow/bin/activate.csh # If using csh (tensorflow)$ # Your prompt should change +``` -# Ubuntu/Linux 64-bit, CPU only, Python 2.7: -(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl +Now, install TensorFlow just as you would for a regular Pip installation. First select the correct binary to install: -# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7. Requires CUDA toolkit 7.5 and CuDNN v4. -# For other versions, see "Install from sources" below. -(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl +```bash +# Ubuntu/Linux 64-bit, CPU only, Python 2.7 +(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: -(tensorflow)$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl -``` +# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7 +# 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 -$ source ~/tensorflow/bin/activate # If using bash -$ source ~/tensorflow/bin/activate.csh # If using csh -(tensorflow)$ # Your prompt should change +# Ubuntu/Linux 64-bit, CPU only, Python 3.4 +(tensorflow)$ 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. +(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: -(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/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, GPU enabled, Python 3.4. 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 +# 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. +(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: -(tensorflow)$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl +# Mac OS X, CPU only, Python 3.4 or 3.5: +(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 @@ -216,6 +241,9 @@ $ conda create -n tensorflow python=2.7 # 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. @@ -224,33 +252,47 @@ Use the `--ignore-installed` flag to prevent errors about `easy_install`. ```bash $ source activate tensorflow (tensorflow)$ # Your prompt should change +``` -# Ubuntu/Linux 64-bit, CPU only, Python 2.7: -(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl +Now, install TensorFlow just as you would for a regular Pip installation. First select the correct binary to install: -# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7. Requires CUDA toolkit 7.5 and CuDNN v4. -# For other versions, see "Install from sources" below. -(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl +```bash +# Ubuntu/Linux 64-bit, CPU only, Python 2.7 +(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: -(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl -``` +# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7 +# 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 -$ source activate tensorflow -(tensorflow)$ # Your prompt should change +# Ubuntu/Linux 64-bit, CPU only, Python 3.4 +(tensorflow)$ 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. +(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: -(tensorflow)$ pip install --ignore-installed --upgrade 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.5 +# 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. -# For other versions, see "Install from sources" below. -(tensorflow)$ pip install --ignore-installed --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.4 or 3.5: +(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 -# Mac OS X, CPU only: -(tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl +# Python 3 +(tensorflow)$ sudo pip3 install --upgrade $TF_BINARY_URL ``` With the conda environment activated, you can now