apt install python / brew install python / …python program.pypython -c "print('Hello Python <3')"python without arguments!pip install ipython, brew install ipython, apt install ipython3, …
VS Code are currently the most popular choicesimport looks for itpython setup.py from this folder!pip install <name>pip means “Pip Installs Packages”django==3.2, while another needs django==4.2? How can you install both versions for the same Python?<venv>\Scripts\activate.bat on Windows or source <venv>/bin/activate on Linux/macOSpip install <what>?requirements.txt for that
Django==4.2.11
requests==2.32.3
pyproject.toml instead, but we’ll talk about it a bit later
[project]
dependencies = [
"Django>=4.2,<5",
"requests>=2.32",
]
requirements.txt, install all dependencies with pip install -r requirements.txt — they will be installed into your active virtual environmentpip, but did not like the lack of features, the slowness, and so onpoetry and pyenv, and now uvuv combines environment management and package installation, and it supports pyproject.toml
[project]
name = "my-project"
version = "0.1.0"
description = "My project"
requires-python = ">=3.12"
dependencies = [
"Django>=4.2,<5",
"requests>=2.32",
]
#!/usr/bin/env python — what does it mean?./program.py instead of python program.py. Unfortunately, it does not work on Windows/usr/bin/python might not be the Python from your virtual environment, so we use /usr/bin/env python, which finds the active virtual environment’s Python