All posts
Knowledge Tools Python April 1, 2026

Python Command Cheatsheet

A quick command cheatsheet for checking Python, managing virtual environments, handling packages, and running files or modules.

This post keeps the most practical Python shell commands in one place: checking versions, creating and activating virtual environments, installing packages, and running scripts or modules without overthinking the setup each time.

Python Command Cheatsheet

What It Covers

  • checking Python and pip versions
  • creating and activating virtual environments
  • package installation and removal
  • running files and modules
  • common command-line workflow basics

It is meant to be a quick working reference instead of a long explanation.

Thanks for reading.

© 2026 Alan Wang