Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In case someone else comes to this like I did...</p> <p>The <a href="https://stackoverflow.com/questions/9819968/running-scipy-on-heroku/10632272#10632272">excellent answer</a> on this question from <a href="https://stackoverflow.com/users/1400423/coshx">@coshx</a> sadly no longer works (at least I could not get it to work). What I did, however was the following:</p> <ol> <li><p>I forked <a href="https://github.com/wyn/npscipy-binaries" rel="nofollow noreferrer">npsicpy-binaries</a> repository from @coshx and changed all the tar files such that they do not have <code>venv</code> as the root folder inside (my fork is <a href="https://github.com/kmp1/npscipy-binaries" rel="nofollow noreferrer">here</a>)</p></li> <li><p>I forked the <a href="https://github.com/wyn/npsp-helloworld" rel="nofollow noreferrer">npsp-helloworld</a> repository from @coshx and made it use a <code>requirements.txt</code> file instead of the setup.py (my fork is <a href="https://github.com/kmp1/npsp-helloworld" rel="nofollow noreferrer">here</a> - this means that you can use the whole pip approach).</p></li> <li><p>I forked the <a href="https://github.com/heroku/heroku-buildpack-python" rel="nofollow noreferrer">heroku-buildpack-python</a> repository from Heroku, took the <a href="https://github.com/wyn/heroku-buildpack-python/blob/master/bin/steps/npscipy" rel="nofollow noreferrer">npscipy</a> file from @coshx and changed it to work with this latest version of the build pack (my fork is <a href="https://github.com/kmp1/heroku-buildpack-python" rel="nofollow noreferrer">here</a> - you can see that there is no venv set up, for example).</p></li> </ol> <p>After doing those three things I have the <a href="https://github.com/wyn/npsp-helloworld" rel="nofollow noreferrer">npsp-helloworld</a> application working perfectly. You just need to make sure you set the buildpack appropriately when creating the application and you are good to go:</p> <pre><code>$ heroku create --stack=cedar --buildpack=https://github.com/kmp1/heroku-buildpack-python.git </code></pre> <p>NOTE: I haven't worked out how to make my own binaries yet, so the three libraries (scipy, numpy and scikit-learn) are not the latest versions so make sure when you install it you do (if anyone can build these I would gladly accept a pull request for them):</p> <pre><code>pip install scipy==0.11.0 pip install numpy==1.7.0 pip install scikit-learn==0.13.1 </code></pre> <p><em>By the way - I am really sorry if I have not done things in the correct way, etiquette-wise. I'm still learning git and this whole open source thing.</em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload