安装tensorflow

安装pip

sudo apt-get install python-pip python-dev

直接在终端输入命令:
pip install tensorflow (python2.7的版本,支持CPU)        
pip3 install tensorflow (python3.x的版本,支持CPU)

GPU版本安装命令如下:
python 2.7版本:sudo pip install tensorflow-gpu
python 3.x版本:sudo pip3 install tensorflow-gpu
问题:
* enum34 canot uninstall*说已安装过了,也无法卸载

pip uninstall enum34

这个也不行
所以用秘密武器conda

conda uninstall enum34 

你可能感兴趣的:(linux使用)