chainer安装GPU版过程中的问题

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 sys
reload(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/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get install g++-4.9
cd ../../usr/bin
ln -s /usr/bin/g++-4.9 /usr/bin/g++ -f
ln -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_PATH
export PATH=/usr/local/cuda-7.5/bin$PATH
export LD_LIBRARY_PATH=/usr/local/cuda7.5/lib64$LD_LIBRARY_PATH
export CPATH=/cudnn/include$CPATH
export LIBRARY_PATH=/cudnn/lib64$LIBRARY_PATH
export 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'


  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值