3

I have a basic nodejs app that works fine on its own on heroku, but I want to add a python script that nodejs will call that uses a numpy package. I have gotten it to work on my local host but I am struggling to get it to work on heroku as it does not recognise the numpy package and I cannot seem to install it with pip as it does not get recognised either.

4
  • Have you tried installing it with easy_install? Commented Jul 23, 2017 at 2:50
  • No, I have not, how does that work? Commented Jul 23, 2017 at 20:03
  • The same as you would do it with pip. easy_install numpy Commented Jul 23, 2017 at 20:22
  • Yes, I tried that, only got "Error: Command failed: easy_install numpy /bin/sh: 1: easy_install: not found" when I tried to build. Commented Jul 24, 2017 at 18:55

1 Answer 1

6

All I had to do was add a requirements.txt file to my project and run: heroku buildpacks:add --index 1 heroku/python -a appname

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.