Installing TensorFlow with native pip

If Steps 1 to 6 have been completed, install TensorFlow by invoking one of the following commands, for Python 2.7 and of course with only CPU support:

$ pip install tensorflow  

For Python 3.x and of course with only CPU support:

$ pip3 install tensorflow

For Python 2.7 and of course with GPU support:

$ pip install tensorflow-gpu

For Python 3.x and of course with GPU support:

$ pip3 install tensorflow-gpu 

If Step 3 failed, install the latest version of TensorFlow by issuing this command manually:

$ sudo pip  install --upgrade TF_PYTHON_URL

For Python 3.x, use the following command:

$ sudo pip3 install --upgrade TF_PYTHON_URL   

For both cases, TF_PYTHON_URL signifies the URL of the TensorFlow Python package presented at this URL: https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package

For example, to install the latest version with CPU only support (currently v1.0.1), use the following command:

$ sudo pip3 install --upgrade  
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp34-cp34m-linux_x86_64.whl
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset