Handling Spaces Dependencies

Default dependencies

The default Spaces environment comes with several pre-installed dependencies:

Adding your own dependencies

If you need other Python packages to run your app, add them to a requirements.txt file at the root of the repository. The Spaces runtime engine will create a custom environment on-the-fly.

Debian dependencies are also supported. Add a packages.txt file at the root of your repository, and list all your dependencies in it. Each dependency should be on a separate line, and each line will be read and installed by apt-get install.