linux上python2.7.11编译安装注意事项

来源:互联网 发布:java聊天室设计与实现 编辑:程序博客网 时间:2024/05/29 03:32

centos7 环境


1.系统要安装 readline-devel,否则python bash  中方向键不可用


2.系统要安装 zlib-devel,否则手动安装pip报错:zlib depress error


3.系统要安装openssl-devel, 否则手动安装pip报错:ImportError: cannot import name HTTPSHandler


4. ./configure 时加上 --enable-shared 选项,否则安装vim自动补全插件YouCompleteMe是报:/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC

0 0
原创粉丝点击