Can I use scientific Python libraries (scipy, scikit-learn, etc) on Heroku?

Issue

My application requires Python extensions for scientific computing.

Resolution

Currently the large number of specialized dependencies make some scientific computing libraries difficult to integrate with our general purpose common runtime.

For Heroku users wanting to work with scipy, scikit-learn and other similar libraries, we recommend using our support for Dockerfile based apps https://devcenter.heroku.com/articles/container-registry-and-runtime

There is an example of a Docker-based scikit-learn app here: https://github.com/heroku-examples/python-miniconda

https://devcenter.heroku.com/articles/python-c-deps#scientific-python-users