Create a virtual environment
Create and activate an isolated Python environment
python3 -m venv .venv && source .venv/bin/activate
More python commands
-
pip install -r requirements.txt --no-cache-dirInstall dependencies without the pip cache
-
pip freeze > requirements.txtSave exact versions of all installed packages to requirements.txt
-
pip list --outdated --format=columnsList packages that have newer versions
-
python3 -m http.server 8080Serve the current directory over HTTP on port 8080 with a built-in module
-
python3 -m json.tool < input.jsonPretty-print a JSON file with the standard library