问题描述
python 版本是 2.7.18
系统版本为 macOS 10.15.7
pip 版本为 20.3.4
pip install
,错误如下:
Building wheels for collected packages: python-ldap,python-openid,pyusb,PyYAML,reportlab,suds-jurko,vatnumber,vobject
Building wheel for python-ldap (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/chong/pyenv/rh_odoo_10/bin/python -u -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-3dY15S/python-ldap/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-3dY15S/python-ldap/setup.py'"'"';f=getattr(tokenize,'"'"'open'"'"',open)(__file__);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' bdist_wheel -d /private/tmp/pip-wheel-Zdq9iA
.
.
.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/Users/chong/pyenv/rh_odoo_10/include/python2.7 -c Modules/LDAPObject.c -o build/temp.macosx-10.9-x86_64-2.7/Modules/LDAPObject.o
Modules/LDAPObject.c:18:10: Fatal error: 'sasl.h' file not found
#include <sasl.h>
^~~~~~~~
1 error generated.
error: command 'gcc' Failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for python-ldap
请帮帮我,谢谢大家。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)