centos6 pip install python-ldap報錯

error: Setup script exited with error: command 'gcc' failed with exit status 1python

 

解決方法:centos

緣由是版本不兼容,centos默認裝了個2.3的。如下指令好使spa

yum install openldap
yum install openldap24-libs
yum install openldap-clients
yum install openldap-devel
yum install openssl-devel
yum install openldap24-libs-devel
export CPATH=/usr/include/openldap24
export LIBRARY_PATH=/usr/lib/openldap24/     (以上爲安裝openldap)
pip install python-ldapip

相關文章
相關標籤/搜索