Open2
Python on Sonoma
Install Python 3.11 with MacPorts
sudo port install python311
port select --list python
none (active)
python311
sudo port select --set python python311
python --version
Python 3.11.6
Install Pyxel on venv
python -m venv --prompt venv .venv
source .venv/bin/activate
pip install pyxel
Hello, Pyxel
pyxel copy_examples &&
pyxel run pyxel_examples/01_hello_pyxel
‣ Quit with Esc key
Deactivate venv
deactivate
Set up for VS Code
.vscode/extensions.json
{
"recommendations": [
"ms-python.python",
"ms-python.black-formatter",
"ms-python.isort"
]
}
.vscode/settings.json
{
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"extensions.ignoreRecommendations": false,
"isort.args": [
"--profile",
"black"
],
"python.terminal.activateEnvInCurrentTerminal": true
}