在Heroku上使用SciPy,Conda无法部署

2024-04-23 12:15:23 发布

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

我的设置:

  1. 赫罗库
  2. Python 2.7.6
  3. 迪亚戈1.8

我把Conda Buildpack设置为:

https://devcenter.heroku.com/articles/python-c-deps

以下是我的康达要求:

^{pr2}$

以下是我在尝试git push后看到的错误:

remote:            gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/app/.heroku/miniconda/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
remote:            c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
remote:             #include <ffi.h>
remote:                             ^
remote:            compilation terminated.
remote:            error: command 'gcc' failed with exit status 1

这是相当混乱的,因为我已经在我的conda要求,但它是同一个失败。谷歌发现有些人仍然有同样的错误,而其他人没有。有什么想法/建议,谢谢!在


Tags: httpscombackendherokuremoteincludeusr错误
1条回答
网友
1楼 · 发布于 2024-04-23 12:15:23

在我为这个问题打开的ticket上,这是suggested

You need to install the libffi-dev (or your OS's equivalent) system package; on debian/ubuntu, that would be apt-get install libffi-dev, for example.

相关问题 更多 >