如何在Heroku服务器中安装Djangoauthldap==1.2.7?

2024-10-04 05:28:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在中使用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

但还是没用。在

有人能请你吗

  1. 请帮助我演示如何构建自己的BUILDPACK
  2. 给我另一个解决方案?在

谢谢!在

---编辑----

刚发现有几个好人在努力工作。在

在herokudefaultbuildpack中有一个pull请求试图直接解决我的这个问题。在

https://github.com/heroku/heroku-buildpack-python/pull/271

我会保持这个问题的开放和更新,以防有人想同样的问题。在

谢谢!在


Tags: installpiphttpsgitgithubcomheroku部署