python
Python language interpreter. More information: <https://www.python.org>.
Install
- All systems
-
curl cmd.cat/python.sh
- Debian
-
apt-get install python-minimal
- Ubuntu
-
apt-get install python-minimal
- Alpine
-
apk add python
- Arch Linux
-
pacman -S python
- Kali Linux
-
apt-get install python-minimal
- CentOS
-
yum install python
- Fedora
-
dnf install python-minimal
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install python-minimal
- OS X
-
brew install python
- Raspbian
-
apt-get install python-minimal
- Dockerfile
- dockerfile.run/python
- Docker
-
docker run cmd.cat/python python
powered by Commando
Python language interpreter. More information: <https://www.python.org>.
-
Start a REPL (interactive shell):
python
-
Execute a specific Python file:
python path/to/file.py
-
Execute a specific Python file and start a REPL:
python -i path/to/file.py
-
Execute a Python expression:
python -c "expression"
-
Run the script of the specified library module:
python -m module arguments
-
Install a package using `pip`:
python -m pip install package
-
Interactively debug a Python script:
python -m pdb path/to/file.py
-
Start the built-in HTTP server on port 8000 in the current directory:
python -m http.server
© tl;dr; authors and contributors