您的位置:首页 > 编程语言 > Python开发

python 安装PIL模块

2014-12-15 16:24 411 查看
python要处理图片就要安装PIL模块,在安装过程中可能回报一个错误  

/usr/bin/ld: /usr/local/lib/libpython2.6.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC

/usr/local/lib/libpython2.6.a: could not read symbols: Bad value

collect2: ld returned 1 exit status

error: command 'gcc' failed with exit status 1

解决方案是把/usr/local/lib/libpython2.6.a 这个文件给搞掉,再执行 python  setup.py install 就行了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: