Here are two ways to set up a Mac for Python projects, assuming VSCode is already installed. The "new way" is much easier, but you may not have access to uv for some reason, so the "old way" is also shown.
Install uv.
curl -LsSf https://astral.sh/uv/install.sh | sh