chainer安装GPU版过程中的问题

来源:互联网 发布:黑龙江财经学院数据库 编辑:程序博客网 时间:2024/05/16 18:38

1.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 34: ordinal not in range(128)
python的str默认是ascii编码,和unicode编码冲突.于是在/usr/lib/python2.7/dist-packages/pip/basecommand.py

import sysreload(sys)sys.setdefaultencoding('utf8')
如果utf-8也不行,现在基本我可以确定是我的某些路径有中文字符,则换成

sys.setdefaultencoding('gbk')

2. pip error: unrecognized command line option‘-fstack-protector-strong

gcc版本低了,原来是4.7~~新加入的c++ 11标准,需升级到4.9

sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get updatesudo apt-get install gcc-4.9sudo apt-get install g++-4.9cd ../../usr/binln -s /usr/bin/g++-4.9 /usr/bin/g++ -fln -s /usr/bin/gcc-4.9 /usr/bin/gcc -f

3。Cuda和cudnn 或者no file  cudnn.h

~/.bashrc最下面加入


export CUDA_PATH=/usr/local/cuda-7.5$CUDA_PATHexport PATH=/usr/local/cuda-7.5/bin$PATHexport LD_LIBRARY_PATH=/usr/local/cuda7.5/lib64$LD_LIBRARY_PATHexport CPATH=/cudnn/include$CPATHexport LIBRARY_PATH=/cudnn/lib64$LIBRARY_PATHexport LD_LIBRARY_PATH=/cudnn/lib64$LD_LIBRARY_PATH

附:

一、临时设置

export PATH=/home/yan/share/usr/local/arm/3.4.1/bin:$PATH

二、当前用户的全局设置

打开~/.bashrc,添加行:

export PATH=/home/yan/share/usr/local/arm/3.4.1/bin:$PATH

使生效

source .bashrc

三、所有用户的全局设置

$ vim /etc/profile

在里面加入:

export PATH=/home/yan/share/usr/local/arm/3.4.1/bin:$PATH


4. bash ./没有那个文件或目录

apt-get install ia32-libs


4.warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'


0 0