2017年9月28日 星期四

Install Tensorflow on Raspberry Pi 2

Reference https://petewarden.com/2017/08/20/cross-compiling-tensorflow-for-the-raspberry-pi/

This is a record of installing Tensorflow on Raspberry Pi 2.
The OS is Raspbian. Login with username pi password raspberry.

pi@raspberrypi:~/tf $ mkdir -p tf/
pi@raspberrypi:~/tf $ cd tf/

pi@raspberrypi:~/tf $ sudo apt-get install libblas-dev liblapack-dev python-dev \
> libatlas-base-dev gfortran python-setuptools

pi@raspberrypi:~/tf $ pip2 install http://ci.tensorflow.org/view/Nightly/job/nightly-pi/lastSuccessfulBuild/artifact/output-artifacts/tensorflow-1.4.0-cp27-none-any.whl

Now the Tensorflow is installed.

pi@raspberrypi:~/tf $ python
Python 2.7.13 (default, Jan 19 2017, 14:48:08) 
[GCC 6.3.0 20170124] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>>


沒有留言:

張貼留言