Order Python 3 from the Marketplace App tab as shown in how to order a VPS with a one-click app. When the install card on your server page shows the finished result, follow the steps below.
What you get
Python 3 with pip, venv and build tools. It needs 1 GB of memory and takes 2 to 4 minutes. The server page shows the Python and pip versions.
1. Start a project
Connect with SSH:
mkdir myproject && cd myproject
python3 -m venv .venv
. .venv/bin/activate
pip install requests
The virtual environment keeps this project's packages apart from the system's.
2. Run it
python3 script.py
3. Keep it running
For a long-running program, use a systemd service. For web apps, run your app with a server such as gunicorn behind Nginx and add HTTPS (guide).
Next steps
- Connect to your VPS with SSH to run the commands above.
- Secure your new VPS before you put real data on it.
- Something not working? See what happens after you order an app, or open a ticket from Support.