PythonAnywhere Forums

Updating dependencies

Do I need to worry about periodically updating the dependencies my applications are using, or is this taken care of as part of "batteries included"?

Thx.

It's actually kind of the opposite... We keep the pre-installed modules static, so that we don't break people's code if they're depending on the older versions.

If you're keen on keeping your dependencies up-to-date, then I'd recommend using a virtualenv for each application, and updating them when you need to. But look out -- not all upgrades are going to be backward-compatible, so you might break your code by upgrading. It's worth keeping a separate copy of each app to test against, either locally or in your PythonAnywhere account.

Makes sense. Thank you.