簡體   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