syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me

Question:
How to install TensorFlow 0.6.0 on Ubuntu 14.04 running Python 3.4 via Anaconda3-2.3.0?

I just finished setting up a TensorFlow training environment on my Ubuntu laptop.

It is easy to do but required some detective work. The proper way to install packages into an Anaconda deployment is to use a utility named conda. I could not get conda to install TensorFlow. Another issue I bumped into was finding the right version of Anaconda matched to the right version of the TensorFlow whl file. The Google TensorFlow docs showed how to install 0.5.0 on a vanilla install of Python 2.7 which is not what I wanted.

It boils down to the shell commands listed below:

cd ~

rm -rf ~/anaconda3/

wget https://repo.continuum.io/archive/Anaconda3-2.3.0-Linux-x86_64.sh

bash Anaconda3-2.3.0-Linux-x86_64.sh

mv ~/anaconda3/bin/curl ~/anaconda3/bin/curl_ana

which python

which pip

~/anaconda3/bin/pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp34-none-linux_x86_64.whl

python

# In python I should type these two commands:
# import tensorflow
# print(tensorflow.__version__)
I ran the above commands and captured some of the output

py34@nia111:~ $ 
py34@nia111:~ $ 
py34@nia111:~ $ ~/anaconda3/bin/pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp34-none-linux_x86_64.whl
You are using pip version 7.0.3, however version 8.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting tensorflow==0.6.0 from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp34-none-linux_x86_64.whl
  Using cached https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp34-none-linux_x86_64.whl
Collecting protobuf==3.0.0a3 (from tensorflow==0.6.0)
  Using cached protobuf-3.0.0a3.tar.gz
Collecting wheel>=0.26 (from tensorflow==0.6.0)
  Using cached wheel-0.26.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.8.2 in ./anaconda3/lib/python3.4/site-packages (from tensorflow==0.6.0)
Collecting six>=1.10.0 (from tensorflow==0.6.0)
  Using cached six-1.10.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./anaconda3/lib/python3.4/site-packages/setuptools-17.1.1-py3.4.egg (from protobuf==3.0.0a3->tensorflow==0.6.0)
Installing collected packages: protobuf, wheel, six, tensorflow
  Running setup.py install for protobuf
  Found existing installation: six 1.9.0
    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling six-1.9.0:
      Successfully uninstalled six-1.9.0
Successfully installed protobuf-3.0.0a3 six-1.10.0 tensorflow-0.6.0 wheel-0.26.0
py34@nia111:~ $ 
py34@nia111:~ $ 
py34@nia111:~ $ 


py34@nia111:~ $ 
py34@nia111:~ $ 
py34@nia111:~ $ python
Python 3.4.3 |Anaconda 2.3.0 (64-bit)| (default, Jun  4 2015, 15:29:08) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> 
>>> import tensorflow
>>> print(tensorflow.__version__)
0.6.0
>>> 
>>> 
py34@nia111:~ $ 
py34@nia111:~ $ 
Next I will follow the content here:

https://www.tensorflow.org/versions/0.6.0/tutorials/index.html


syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me