Running Numpy on Heroku/Sandbox?

260 views
Skip to first unread message

Daniyal Chawla

unread,
Jun 18, 2021, 10:20:04 PM6/18/21
to oTree help & discussion
My code uses Numpy, and it runs perfectly on the deverser. But when I run it on Heroku or Sandbox, it returns an error saying 'no module named numpy'. Is there a way to resolve this? Thanks!

Chris @ oTree

unread,
Jun 18, 2021, 10:20:39 PM6/18/21
to oTree help & discussion
add numpy to your requirements.txt.

Daniyal Chawla

unread,
Jun 18, 2021, 10:39:04 PM6/18/21
to oTree help & discussion
It worked, thank you so much Chris!
Reply all
Reply to author
Forward
0 new messages