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

原文地址:https://www.cnblogs.com/homie/p/10559110.html