Custom Search

Tuesday, May 23, 2017

How to Install TensorFlow on Ubuntu 17.04

1)
Install pip and virtualenv.


$ sudo apt-get install python-pip python-dev python-virtualenv


2)
Create a virtualenv environment.


$ virtualenv --system-site-packages myvenv


3)
Activate the virtualenv environment


$ source myvenv/bin/activate

4)
Install TensorFlow in the active virtualenv environment


$ pip install --upgrade tensorflow


5)
Test

$ python
import tensorflow