繁体   English   中英

Herda上的SciPy与Conda未能部署

[英]SciPy on Heroku with Conda failing to deploy

我的设置:

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

我按照以下方式设置了Conda Buildpack:

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

这是我的conda要求:

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

这是我在尝试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-requirements中使用了libffi,但它却是失败的那个。 谷歌搜索显示,其他一些人仍然有同样的错误 - 而其他人则没有。 任何想法/建议赞赏!

在我为此问题打开的机票上, 建议

您需要安装libffi-dev (或您的操作系统等效)系统包; 例如,在debian / ubuntu上,这将是apt-get install libffi-dev

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM