Create 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 using pip cache
-
pip freeze > requirements.txtSave exact versions of all installed packages
-
pip list --outdated --format=columnsList packages with newer versions available
-
python3 -m http.server 8080Serve current directory over HTTP on port 8080
-
python3 -m json.tool < input.jsonPretty-print a JSON file using stdlib