tensorflow安装

Ubuntu安装tensorflow
先安装python-dev,再安装tensorflow就好了
$ sudo apt-get install python-dev
$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

# For CPU-only version
$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

把0.5.0换成0.8.0就可以安装0.8.0版本
# For GPU-enabled version (only install this version if you have the CUDA sdk installed) $ pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

 

安装新版本不用删除之前的版本,tensorflow自己会删除之前的旧版本安装新版本

tensorflow卸载:sudo pip uninstall tensorflow

 

 

 

最简单粗暴的方法:pip install tensorflow

但这种安装出来,我没有在安装目录中找到android的文件

现在尝试下载https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp27-none-linux_x86_64.whl

 

 

还有一种从github上直接下载源码的教程,里面还要下载bazel

如这个博客:https://blog.csdn.net/ryoyi/article/details/54428555

其实这种方式最后还是生成whl,也就是说bazel只是用来把tensorflow编译的,和make一样

posted @ 2016-12-18 16:59  有梦就要去实现他  阅读(284)  评论(0编辑  收藏  举报