配置python 中chainer的cuda出現問題:
1、 要先安裝顯卡驅動,這個過程有些複雜 參考
http://jingyan.baidu.com/article/9f7e7ec04896fb6f281554e7.html
http://blog.163.com/zhao_en_peng/blog/static/12740422420131202110539/
2、然後安裝cuda
要先下載deb文件 ,然後把deb 放在home目錄用戶的主文件夾下,(https://developer.nvidia.com/cuda-downloads)然後
然後配置環境變量
sudo gedit ~/.bashrc
在./bashrc中加入下面內容並保存
export PATH=/usr/local/cuda-7.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda7.5/lib64:$LD_LIBRARY_PATH
然後重新加載文件
~/.bashrc
不行的話則
source ~/.bashrc
https://github.com/pfnet/chainer
3、 然後安裝chainer
sudo pip install chainer
http://docs.chainer.org/en/stable/install.html