Custom Search

Wednesday, May 24, 2017

Python 3 How to Install TensorFlow

1)
Install pip3 and virtualenv.


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

2)
Create a virtualenv environment.


$ virtualenv -p python3 --system-site-packages myvenv

3)
Activate the virtualenv environment


$ source myvenv/bin/activate

4)
Install TensorFlow in the active virtualenv environment


$ pip3 install --upgrade tensorflow

5)
Test
$ python3
import tensorflow


No comments:

Post a Comment