1 前语
最近想学习DL,但是发现没有什么好的入门的东西,最近方向一直比较迷茫,东做做西做做,现在又来这里做Tensorflow了。
关于Tensorflow 1.0是如何安装的,可以直接参照他的官方文档,我是装在了Ubuntu 14.04 64bit上的,之前在12的版本上死活装不上,这点留给大家参考,万一你的也装不上。14.04则可以完全按照官方的说明安装。
Tensorflow目前不能直接在Windows上跑,所以先找个对应的系统吧。
安装首先安装依赖:
# Ubuntu/Linux 64-bit
$ sudo apt-get install python-pip python-dev
# Mac OS X
$ sudo easy_install pip
$ sudo easy_install --upgrade six
然后从下面的版本中选择一个安装,只用选择一个就可以,比如我选择的是第一个,只用CPU,Python2.7,看自己情况了
# Ubuntu/Linux 64-bit, CPU only, Python 2.7
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
# Requires CUDA toolkit 7.5 and CuDNN v5. For other versions, see "Install from sources" below.
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl
# Mac OS X, CPU only, Python 2.7:
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.10.0-py2-none-any.whl
# Mac OS X, GPU enabled, Python 2.7:
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.10.0-py2-none-any.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.4
$ export TF_BINARY_URL=https://stor