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
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
No comments:
Post a Comment