Python Versions in Anvil
Anvil lets you write everything in Python - both in the web browser and on the server.
Your Server Module code runs in a Python 3.10 environment on the Anvil server. Here, you can install any third-party Python packages you need into your app’s environment. Learn more about installing packages here.

Other Python Environments
In addition to Python 3.10, Anvil provides other server environments for specific use cases:
Basic Python 3
Basic Python is a PyPy Sandbox - this is a Python 3.6 interpreter with extra security features that allow us to provide the server environment for free to everybody.
Legacy Full Python
The Legacy Full Python server environment is an ordinary CPython interpreter - the standard version of Python that you probably have on your own machine. This is available on all paid tiers.
For each app, you can choose between Python 3.7 or Python 2.7 for your Server Modules. These environments have a number of packages already installed. For a full list, see here.
Do you still have questions?
Our Community Forum is full of helpful information and Anvil experts.