How to install scikit-learn on the cedar hero?

I have successfully installed numpy and scipy using the method described in this . Then I wanted to add scikit-learn, so first I tried adding scikit-learn==0.11.txt to the requirements file and when I clicked on the hero I got an error message:

ImportError: liblapack.so.3gf: cannot open shared object file: No such file or directory

So, I added to the LD_LIBRARY_PATHpath where I have it liblapack.so.3gf, but then I got the following:

ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory

I believe geroku does not have a fortran compiler, but maybe I'm wrong. How can i solve this?

+5
source share
5 answers

, scikit-learn heroku. , , , :)

buildpack wyn: https://github.com/ToonTimbermont/heroku-buildpack-python

LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$(pwd)/vendor/lib:$(pwd)/vendor/lib/atlas- base:$(pwd)/vendor/lib/atlas-base/atlas

heroku: heroku config:add LD_LIBRARY_PATH=/app/.heroku/vendor/lib/atlas-base/atlas:/app/.heroku/vendor/lib/atlas-base:/app/.heroku/vendor/lib/

+6

conda buildpack, Linux64, Anaconda/Miniconda, Heroku . numpy, scipy, scikit-learn, statsmodels pandas. buildpack , - , buildback , Anaconda .

Python Heroku, conda buildpack :

$ heroku create YOUR_APP_NAME --buildpack https://github.com/kennethreitz/conda-buildpack.git

Python Heroku, conda buildpack :

$ heroku config:add BUILDPACK_URL=https://github.com/kennethreitz/conda-buildpack.git

, :

$ heroku config:add BUILDPACK_URL=https://github.com/kennethreitz/conda-buildpack.git --app YOUR_APP_NAME

buildpack, , .txt conda-requirements.txt. Python buildpack, requirements.txt , pip. , conda, conda-requirements.txt. numpy, scipy, scikit-learn, statsmodels, pandas cvxopt. conda repo.continuum.io.

:

$ cat requirements.txt
gunicorn==0.14.2
requests==0.11.1

$ cat conda-requirements.txt
scipy
numpy
cvxopt

! Anaconda Python Heroku.

+3

, , , , Heroku Python Buildpack git , . buildpack --buildpack .

: , , buildpack. buildpack , . 64- Debian.

, buildpack, --prefix, ./configure, , . , , numpy scipy.

+1

conda buildpack "nomkl" conda-requirements.txt, slugsize.

-1

All Articles