Akadata Linux · Version 0 Saphira

Python and pip

Create virtual environments, install packages with pip, and run Flask, Django, or FastAPI on Akadata Linux.

Saphira, the Akadata Linux Version 0 mascot
Technical preview

Stack guide — Python

Python 3, pip, and virtual environments

Python 3 includes pip, setuptools, and packaging. The recommended workflow is to create a virtual environment for each application:

python3 -m venv /usr/local/venvs/myapp
source /usr/local/venvs/myapp/bin/activate
pip install flask gunicorn

The virtual environment isolates your application and its dependencies in /usr/local/venvs/myapp. Nothing touches the system Python installation. To deactivate:

deactivate

Useful packages for production servers:

  • Web frameworks: flask, django, fastapi, gunicorn, uvicorn
  • Data: pymysql (MariaDB), psycopg2 (compile separately for PostgreSQL)
  • Networking: requests, httpx, aiohttp
  • System: psutil, pyyaml, cryptography

pip installs packages into /usr/local. A virtual environment at /usr/local/venvs/myapp can be archived, moved to another Saphira machine, and activated. It runs without re‑installation because the Python interpreter and standard library are part of the Akadata base. Mount /usr/local from a separate volume or copy it between servers; where the Akadata base matches, the environment is usable as‑is.