Python Development
Set up a Python development environment with pyenv
Configuration
[
{
"type": "pyenv",
"global": "3.12",
"pythonVersions": [
"3.12"
]
}
]What Gets Installed
This configuration installs pyenv (Python Version Manager), a popular tool for downloading, managing, and installing Python versions. Similar to nvm for Node.js, pyenv allows multiple Python versions to be installed simultaneously and switched between easily.
This configuration will:
- Install pyenv if not already present
- Install Python 3.12
- Set Python 3.12 as the default system version
Usage
After installation, you can:
- Check the Python version:
python --version - Switch Python versions:
pyenv global <version>orpyenv local <version> - Install additional versions: Add them to the
pythonVersionsarray - Change the default version: Update the
globalproperty