- Sistema Operacional: Linux, macOS, ou Windows (WSL2)
- Python: 3.9 ou superior
- Gerenciador de pacotes: pip (vem com Python)
- Git: para versionamento
Verifique se tem instalado:
python --version # Deve mostrar 3.9+
pip --version # Deve mostrar versão recente
git --version # Deve estar disponívelSe algum não estiver, baixe em:
- Python: https://python.org
- Git: https://git-scm.com
git clone https://github.com/claudiogpt/lab-vibecoding.git
cd lab-vibecoding# Linux/macOS
python -m venv venv
source venv/bin/activate
# Windows
python -m venv venv
venv\Scripts\activatepip install -r requirements.txtpython -c "import anthropic; print('✅ Anthropic SDK OK')"
# ou
python -c "import ollama; print('✅ Ollama OK')"Se preferir não usar APIs de terceiros e rodar localmente:
Baixe em: https://ollama.ai
ollama pull llama2
ollama serve # Em outro terminal, deixa rodando# Configure para usar Ollama
export OLLAMA_HOST=http://localhost:11434
# Testes usarão Ollama automaticamente1. Crie conta em https://openai.com
2. Gere uma chave API em https://platform.openai.com/account/api-keys
# Linux/macOS (adicione ao ~/.bashrc ou ~/.zshrc)
export OPENAI_API_KEY="sk-..."
# Windows (Command Prompt)
set OPENAI_API_KEY=sk-...
# Windows (PowerShell)
$env:OPENAI_API_KEY="sk-..."1. Crie conta em https://claude.ai
2. Gere uma chave API em https://console.anthropic.com
# Linux/macOS
export ANTHROPIC_API_KEY="sk-ant-..."
# Windows
set ANTHROPIC_API_KEY=sk-ant-...Execute o script de teste:
python tests/check_setup.pyDeve mostrar quais LLMs estão disponíveis:
✅ Ollama (local)
✅ OpenAI API
❌ Anthropic API (não configurado)
pip install anthropic
# ou reinstale tudo
pip install -r requirements.txt# Verifique se Ollama está rodando
ollama serve
# Em outro terminal, tente conectar
curl http://localhost:11434/api/generate -d '{"model":"llama2", "prompt":"hi"}'# Verifique a variável
echo $OPENAI_API_KEY
# Se vazio, configure:
export OPENAI_API_KEY="seu-token"Se seu sistema só tem Python 3.8:
# Considere usar pyenv para múltiplas versões
curl https://pyenv.run | bash
# Depois instale Python 3.9+
pyenv install 3.11.0lab-vibecoding/
├── venv/ # Ambiente virtual
├── 00-introducao/
├── 01-conceitos-fundamentais/
├── ...
├── requirements.txt
└── INSTALL.md (este arquivo)
- ✅ Instalação completa? Vá para
00-introducao/slides.md - Leia
ferramentas-gratuitas.mdpara mais opções - Consulte
README.mdpara visão geral do lab
Problema não resolvido? Veja recursos-extras.md ou abra uma issue.