thiết lập của tôi:scipy trên Heroku với Conda thất bại trong việc triển khai
- Heroku
- Python 2.7.6
- Django 1,8
Tôi có Conda Buildpack thiết theo:
https://devcenter.heroku.com/articles/python-c-deps
Đây là yêu cầu chung của tôi:
$ cat conda-requirements.txt
cryptography
scipy
numpy
gcc
libffi
Đây là lỗi tôi nhìn thấy sau khi cố gắng 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
này là khá khó hiểu bởi vì tôi có libffi trong conda-yêu cầu của tôi đã và nhưng nó là một trong cùng đó là thất bại. Googling tiết lộ rằng một số người khác có lỗi này vẫn còn - trong khi những người khác thì không. Bất kỳ suy nghĩ/đề xuất đánh giá cao!
Đã xác nhận cho CIBox cũng https://github.com/propeoplemd/cibox/pull/443 – podarok