Python: Developing in Python: the local approach
This documentation is part of the Development platform guide. You can view the complete guide here: Prepare your development platform for a smooth and productive experience.
👋 Welcome to the Stackhero documentation!
Stackhero offers a ready-to-use Python cloud solution designed to simplify your deployments:
- Deploy your application to production in just seconds with a simple
git push.- Use your own domain name, with automatic HTTPS certificate setup for secure connections managed for you.
- Take advantage of automatic backups, one-click updates, and predictable pricing, so you can focus on your code instead of infrastructure management.
- Benefit from high performance and security on a private, dedicated infrastructure. Your environment is isolated and protected.
Save time and streamline your workflow: your code can be up and running with Stackhero's Python cloud hosting in just 5 minutes.
Setting up Python locally means installing the runtime, dependencies, and development tools on your own machine. This gives you full control, but you are responsible for updates, backups, and keeping your environment consistent.
Setting up your local Python environment
For a flexible and consistent setup, you can use asdf, a tool for managing multiple runtime versions. asdf supports Python as well as many other languages like Node.js, Ruby, and PHP. It makes it easy to switch between versions and keep your projects isolated.
Traditional Python workflows rely on virtual environments (such as python venv, virtualenv, or mkvirtualenv) to separate dependencies. With asdf, you can manage both Python versions and project environments more robustly, reducing friction and avoiding common version conflicts.
Installing asdf
You can follow the official asdf installation guide to set up asdf on your system.
After installation, verify that asdf is properly configured by running:
asdf version
The installed version should be displayed, confirming that asdf is ready to use.
Installing Python using asdf
To add Python support and install the latest version, run:
asdf plugin add python https://github.com/danhper/asdf-python.git
asdf install python latest
asdf global python latest
Once finished, check your Python version:
python --version
This output confirms your Python installation is ready for development.