1. cuda:developer.nvidia.com/cuda-downloads,最后測試sample的deviceQuery成功是用的這個blog.csdn.net/WoPawn/article/details/52302164
2. tensorflow:按照官方的流程,官方鏈接,或者源碼編譯。
我用的是anaconda安裝,在安裝過程中需要注意以下幾點
1)注意Python版本與對應(yīng)的pip版本,我用的是python3.5和pip3,pip3也是3.5版本下的。
2)確保第一步中的sample測試成功,并且配置了環(huán)境變量和安裝了正確的gpu驅(qū)動
3)安裝過程較慢,需要的包:markdown,numpy,protobuf,html5lib,setuptools,bleach,six,wheel,werkzeug,backports.weakref
按照這個方法添加了豆瓣的源,下載賊快,然后一個一個下好。
4)安裝完成之后發(fā)現(xiàn)無法import tensorflow,找了很久的原因,原來是安裝的時候用了sudo pip3,這樣的話,根據(jù)這里:“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再安裝一遍,成功