ubuntu14.4情形下搭建tensorflow情形
1 说明:本机环境ubuntu14.4——64位,gtx970显卡。我是使用下载好的安装包进行安装,tensorflow使用源码安装。
2 需要准备的材料,Anaconda2-4.2.0-Linux-x86_64.sh,cuda_8.0.44_linux.run.这些东西需要自己上网找到对应版本。
3 安装anaconda, 1)添加可执行权限,chmod +x Anaconda2-4.2.0-Linux-x86_64.sh 2)安装,sudo bash Anaconda2-4.2.0-Linux-x86_64.sh
4 更新gcc编译器,因为cuda需要使用gcc编译器,gcc版本>=4.8.2.详情请查看官网配置。我的机器看了一下gcc版本4.8.4,所以可以不用升级。
5 安装cuda8,官方文档
1. Disable the Nouveau drivers: 1). Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents: blacklist nouveau options nouveau modeset=0 3. Run the installer silently to install with the default selections (implies acceptance of the EULA): sudo sh cuda_<version>_linux.run --silent 令人抓狂的是就算按照这个装也没有成功,提示如下信息 The following packages have unmet dependencies: unity-control-center: Depends:libcheese-gtk23(>=3.4.0) but it is not going to be installed Depends:libcheese7(>=3.0.1) but it is not going to be installed 最后决定尝试另外一种办法。下面的过程是官网的指导。 6 安装cuda8方案二 , (编辑:PHP编程网 - 黄冈站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |