< All Topics
Print

venv – example (Ubuntu)

This guide covers creating your pywave_venv environment, upgrading tools, and installing the Textual framework.


1. Environment Setup

Run these once to create and enter your isolated workspace.

Bash

# Create the virtual environment
python3 -m venv pywave_venv

# Activate the environment
source pywave_venv/bin/activate

2. Core Installation

Once activated, run these commands to ensure everything is current.

Bash

# Upgrade pip to the latest version
python -m pip install --upgrade pip

# Install Textual (plus dev tools for CSS live-reloading)
pip install "textual[dev]"

3. Verify & Test

Check if the installation was successful by running the built-in demo.

Bash

# Run the Textual demo gallery
python -m textual

💡 Daily Workflow Commands

GoalCommand
Start Workingsource pywave_venv/bin/activate
Stop Workingdeactivate
Save Dependenciespip freeze > requirements.txt
Reinstall from Filepip install -r requirements.txt
Check Versionpip show textual
Table of Contents