惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Vercel News
Vercel News
F
Fortinet All Blogs
月光博客
月光博客
G
Google Developers Blog
博客园 - Franky
GbyAI
GbyAI
The Cloudflare Blog
I
InfoQ
雷峰网
雷峰网
WordPress大学
WordPress大学
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
小众软件
小众软件
腾讯CDC
B
Blog
量子位
V
V2EX
S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Using Mise as a tool development manager when installing ...
Zawadi Mwikali · 2026-06-22 · via DEV Community
Cover image for Using Mise as a tool development manager when installing Apache Airflow.

Zawadi Mwikali

This week I ran into a challenge with the versions of Python and Ubuntu conflicting. A point to note is that the most recent versions are not always the best. This article explores the use of Mise as a development environment manager, particularly for Python development and the installation of Apache Airflow on a local machine.

Understanding Mise.

Mise (formerly known as rtx) is a fast and modern development tool manager that allows developers to install and manage multiple versions of programming languages and development tools.

Installing Mise

Linux and macOS

curl https://mise.run | sh 

Managing Python with Mise

Mise is majorly used for Python Version Management.

Installing Python 3.12
mise install python@3.12
mise use --global python@3.12

*Verify:
*

python --version

Expected output:

*Python 3.12.x
*

Using Apache Airflow.

Apache Airflow has strict compatibility requirements regarding Python versions and package dependencies.
Using Mise allows developers to isolate Airflow within a dedicated project environment while ensuring the correct Python version is used.

Installing Apache Airflow Using Mise

Step 1: Create a Project Directory

mkdir airflow-local
cd airflow-local

Step 2: Configure Python

mise use python@3.12

Verify:

python --version

Step 3: Create a Virtual Environment

Although Mise manages Python versions, it is still recommended to use a virtual environment for package isolation.

python -m venv .venv

Activate it:

Linux/macOS:

source .venv/bin/activate

Windows:

.venv\Scripts\activate

Step 4: Upgrade Pip

pip install --upgrade pip

Step 5: Install Apache Airflow

Airflow recommends using official constraints files.

For Airflow 3.x:

AIRFLOW_VERSION=3.0.2
PYTHON_VERSION=3.12

pip install "apache-airflow==${AIRFLOW_VERSION}" \
  --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"

Step 6: Initialize Airflow

airflow db migrate

Create an administrative user:

airflow users create \
    --username admin \
    --firstname Admin \
    --lastname User \
    --role Admin \
    --email admin@example.com

Step 7: Start Airflow

Start the scheduler:

airflow scheduler

In a separate terminal:

airflow webserver

The Airflow interface becomes available at:

http://localhost:8080