Custom Search

Wednesday, May 24, 2017

Python 3.5 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.5 --system-site-packages myenv

3)
Activate the virtualenv environment


$ source myenv/bin/activate

4)
Install TensorFlow in the active virtualenv environment


$ pip3 install --upgrade tensorflow

5)
Test
$ python3.5
import tensorflow

No comments:

Post a Comment