2016-03-03 34 views
5

我的设置:SciPy的在Heroku上与康达未能部署

  1. Heroku的
  2. 的Python 2.7.6
  3. 的Django 1.8

我有康达Buildpack设置按:

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

这是我的conda-requirements:

$ cat conda-requirements.txt 
cryptography 
scipy 
numpy 
gcc 
libffi 

这里是我想混帐推后看到的错误:

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 

这是相当令人困惑,因为我在我的畅达,要求有libffi已经,但它是一个的失败同一个。谷歌搜索显示,其他一些人仍然有这个相同的错误 - 而其他人没有。任何想法/建议表示赞赏!

+0

确认CIBox以及https://github.com/propeoplemd/cibox/pull/443 – podarok

回答

0

ticket我打开了这个问题,这是suggested

您需要安装libffi-dev(或您的操作系统的当量)系统封装;在Debian/Ubuntu上,例如,这将是apt-get install libffi-dev