Setup and tooling · Python How-To Guides
Setup guides for working outside the browser. Each one lists the commands for every operating system, explains what they do and covers the errors you may see along the way.
All 3
How to Install a Package with pip in Python
Run `python -m pip install package_name` in your terminal (not inside the Python prompt). Using `python -m pip` guarantees the pa…
How to Create a Virtual Environment in PythonRun `python -m venv .venv` in your project folder, then activate it with `source .venv/bin/activate` (macOS and Linux) or `.venv\…
How to Run a Python Script from the Command LineSave your code in a file such as `hello.py`, open a terminal in that folder and run `python hello.py` (or `python3 hello.py` on m…
Explore more
Python ReferencePython ProgramsPython ComparisonsPython Cheat SheetsPython glossaryPython tutorial