Ubuntu16.10上搭建深基于python+tensorfl

2017-08-02  本文已影响0人  CodePlayHu

1. cuda:developer.nvidia.com/cuda-downloads,最后测试sample的deviceQuery成功是用的这个blog.csdn.net/WoPawn/article/details/52302164

2. tensorflow:按照官方的流程,官方链接,或者源码编译

我用的是anaconda安装,在安装过程中需要注意以下几点

1)注意Python版本与对应的pip版本,我用的是python3.5和pip3,pip3也是3.5版本下的。

2)确保第一步中的sample测试成功,并且配置了环境变量和安装了正确的gpu驱动

3)安装过程较慢,需要的包:markdown,numpy,protobuf,html5lib,setuptools,bleach,six,wheel,werkzeug,backports.weakref

按照这个方法添加了豆瓣的源,下载贼快,然后一个一个下好。

4)安装完成之后发现无法import tensorflow,找了很久的原因,原来是安装的时候用了sudo pip3,这样的话,根据这里:“Just to add to this issue: The original problem existed, because asudowas used beforepip, with you having a local anaconda installation. So thesudo'spipled to the system wide defaultpip, which installed tensorflow not into your local anacondasite-packagesand hence it couldn't be found.”    去掉sudo再安装一遍,成功

上一篇 下一篇

猜你喜欢

热点阅读