OpenViSTAI · Agents · Blockchain · Crypto
Menu

OPENVIST LEARN · FREE LESSONS

Check Python and install it when needed

Prepare the Python interpreter on the practice server without changing the system Python manually.

Lesson 7 of 10 · About 15 minutes · Beginner · English

By the end of this lesson

Confirm Python 3.12 is available on Ubuntu 24.04 and recognise an administrator prompt.

Before you start

  • An Ubuntu Server 24.04 practice VPS.
  • A regular user account with sudo rights for installation if needed.

Three words to know

Interpreter
The program that reads and executes Python source code.
Package manager
The operating system’s tool for installing and maintaining packages.
sudo
A request to run a command with administrative permissions.

1. Check before installing

Read the available versionVPS · Bash
python3 --version
What you should see · example output
Python 3.12.x on the Ubuntu 24.04 environment used for this route.

If Python 3.12 is already available, skip installation and continue to the workspace check below. A different version is not automatically broken, but this route’s final recipe records its tests on Python 3.12. Use the supported practice environment rather than claiming another version has the same test evidence.

2. Install only if it is missing

Refresh the package listVPS · Bash
sudo apt update
What you should see · example output
Repository metadata is refreshed. This does not by itself install all available upgrades.
Install the interpreter and virtual-environment supportVPS · Bash
sudo apt install python3 python3-venv
What you should see · example output
apt shows proposed packages and may ask for confirmation; after completion the prompt returns.

The sudo password prompt may show no characters. If you are not allowed to use sudo, use your provider’s supported account setup instead of changing random permissions. A package-manager lock means another package operation is running; let it finish. Do not delete its lock files.

3. Recheck in your workspace

Verify the interpreter and return to the course folderVPS · Bash
python3 --version
cd "$HOME/openvist-learn"
pwd
What you should see · example output
Python 3.12.x and a path ending in /openvist-learn.

Python is the interpreter; your .py files are the programs it runs. This route needs no pip packages, API keys or paid model service. A virtual environment becomes useful in later lessons that introduce external dependencies; it is not required for this standard-library example.

YOUR TURN

A small check before you continue

If python3 is installed but Python cannot find a particular .py file, should you reinstall the interpreter?

Show a suggested answer

First inspect pwd and ls -la. A missing script path is a separate issue from a missing interpreter.

Sources and scope

Documentation and examples reviewed 2026-10-18. Provider screens, package versions and output wording can differ. Examples show expected outcomes; they are not a claim that OpenViST connected to your server or verified your setup.