A hands-on AI Summer School session showing you how to quickly set up Python environments for AI development using uv. We'll explore two modes: fun instant tools with uvx and serious project environments for training deep learning models.
- 🛡️ Why Virtual Environments Matter – Keep projects isolated and conflict-free
- ⚡
uvBasics – Fast installs, clean env management - 🐄 Fun with Tools – Try out terminal toys instantly with
uvx - 🧠 Real ML Workflows – Train a Variational Autoencoder (VAE) in an isolated environment
Virtual environments let you:
- Avoid dependency conflicts between projects
- Share code with reproducible installs
- Experiment without breaking your system Python
tl;dr: They keep your projects clean, reproducible, and conflict‑free.
curl -LsSf https://astral.sh/uv/install.sh | shWith uvx, you can run CLI tools instantly without installing them permanently:
uvx cowsay "Hello AI Scholars!"- fortune prints a random quote
- cowsay makes a cow say it 🐮
Chain them for instant smiles.
git clone git@github.com:GauravR1206/Hello-AI-World.git
cd Hello-AI-Worlduv syncThis creates & populates your virtual environment from pyproject.toml.
python train_VAE.py --epochs 20 --latent_dim 2```
---
**🎉 That's it!** You’ve learned how to:
* Use `uv` for quick, fun CLI tools
* Create a clean, reproducible environment for ML
* Train a real deep learning model in minutes