Code-Hero: Change the default Python version
This documentation is part of the Python guide. View the full guide here: Using Python with Code-Hero.
👋 Welcome to the Stackhero documentation!
Stackhero offers Code-Hero, a complete development platform to code in seconds:
- Code from anywhere: Use any device, be it a desktop, phone, or tablet, without requiring any software installations.
- Integrated VSCode experience: Work with a customized version of VSCode directly through your browser, featuring a fully functional terminal.
- Comprehensive toolset: Benefit from a pre-configured environment with tools and languages like
Docker,Git,Zsh,Node.js,Go,Python,Ruby, and more.- Seamless connectivity: Access your development applications via HTTPS on a public domain, mimicking production conditions. This setup supports webhooks and external integrations effortlessly.
Experience the efficiency and convenience of Stackhero's Code-Hero development cloud solution. It takes just 5 minutes to get started! Simplify your development processes and save valuable time today.
If you want to use a different Python version, follow these steps:
-
Update all plugins:
asdf plugin update --all -
List all available Python versions:
asdf list all python -
Install your chosen version:
asdf install python <VERSION>
After installing the desired version, decide whether to apply it globally or locally.
-
To use the version globally (across all directories), run:
asdf global python <VERSION> -
To use the version locally (in your current directory), run:
asdf local python <VERSION>The local command generates a
.tool-versionsfile in your current directory with the chosen version details.
Confirm that the correct Python version is active by running:
python -V