Posts /

Tensorflow Installation on OS X 10.11.6 with GPU support

Twitter Facebook
05 Apr 2017

现在 Tensorflow 已经出了 1.0 的正式版,此教程更新至此版本。

很早之前就出了 caffe 的安装步骤教程,迟迟没有出 tf 的教程的原因是之前装了很多次,但是完全装好 tf 只有一次,而且还是迷迷糊糊装好的,所以不能保证步骤一定能够复现。今天又试了一次,终于大功告成。

Beyond the errors documented in those two guides, the following table notes additional errors specific to building TensorFlow. Note that we are relying on Stack Overflow as the repository for build and installation problems. If you encounter an error message not listed in the preceding two guides or in the following table, search for it on Stack Overflow. If Stack Overflow doesn’t show the error message, ask a new question on Stack Overflow and specify the tensorflow tag.

Stack Overflow Link Error Message
42013316 ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory
42013316 ImportError: libcudnn.5: cannot open shared object file: No such file or directory
35953210 Invoking python or ipython generates the following error:ImportError: cannot import name pywrap_tensorflow

以下步骤是历史版本,可以忽略。

如果不出什么意外,到此就已经安装成功,是不是很简单?哈哈……

安装成功后,进入 ipython 输入 import tensorflow 则会看到:

当然,不出意外的话,你是会遇到很多问题的,不要着急,慢慢一个错一个错的解决就好了,要有耐心。

<持续更新中>
Twitter Facebook