sudo apt-get install python-pip python-dev python-virtualenv
sudo apt-get install python3-pip python3-dev python3-virtualenv
sudo mkdir~/env
sudo virtualenv --syste-site-packages ~/env/tensorflowsou
source ~/env/tensorflow/bin/activate激活
deactive关闭
sudo printf '\nalias tensorflow="source ~/env/tensorflow/bin/activate" ' >> ~/.bashrc
以后可以用tensorflow使用