2016-03-03 35 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