我试图在中使用pip install
安装这个库django-auth-ldap==1.2.7
要求.txt。在
我使用Heroku服务进行部署。在
但是,每次我尝试推送/部署代码时,我都无法完全完成依赖性检查/安装,因为弹出这个错误:
remote: Modules/LDAPObject.c:18:18: fatal error: sasl.h: No such file or directory
我暂且不提这个问题和答案:python-ldap failed to install in Heroku
但是没有运气。在
基本上,我尝试过使用第三方的BUILDPACK:
heroku config:set BUILDPACK_URL=https://github.com/damgad/heroku-buildpack-python-ldap.git
以及
heroku buildpacks:set https://github.com/damgad/heroku-buildpack-python-ldap.git
但还是没用。在
有人能请你吗
谢谢!在
---编辑----
刚发现有几个好人在努力工作。在
在herokudefault
buildpack中有一个pull请求试图直接解决我的这个问题。在
我会保持这个问题的开放和更新,以防有人想同样的问题。在
谢谢!在
这不是您使用自定义buildpack的方式;您所做的只是设置一个名为buildpack\u URL的环境变量。在
相反,请遵循documentation:您需要
heroku buildpacks:set https://.....
。在相关问题 更多 >
编程相关推荐