Installing Custom Packages - build fails (consistently)

What I’m trying to do:
install the networkx package

What I’ve tried and what’s not working:
whenever I add a package, I often get a build failure, usually due to the build timing out

Question is, I’ve ‘left’ every package I’ve ever added in the package list, I wonder if this is incorrect in that I should only be adding packages instead of leaving them all there… this is what my UI looks like:

Hi @dconnell,

Removing a package from that package list will remove it from your app’s requirements.txt, so leaving the packages there is the correct thing to do.

Sometimes build timeouts will happen when a package has a lot of dependencies. I would recommend starting from a different base image which already has packages installed. I was able to successfully install networkx on top of the Data Science base image. Some of the packages in your list (e.g. plotly, matplotlib) are already installed in that base image.

1 Like