docker python 镜像安装pip install python-ldap 报错

docker python 镜像安装pip  install  python-ldap 报错

Modules/LDAPObject.c:16:23: fatal error: sasl/sasl.h: No such file or directory
#include <sasl/sasl.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1

 

解决:

apt-get install libsasl2-dev

posted @ 2019-03-19 15:42  mingtao  阅读(1774)  评论(0)    收藏  举报