pip and Python virtual environments with Cerewro
pip is Python's package manager. Virtual environments (venv) isolate each project's dependencies to avoid version conflicts. From Cerewro you can manage the full Python environment lifecycle from the chat.
Working with venv
Create and activate virtual environment
python -m venv .venv
.venv\Scripts\Activate.ps1 # Windows PowerShell
source .venv/bin/activate # Linux/Mac
pip commands
| Action | Command |
|---|---|
| Install package | pip install requests |
| Install specific version | pip install Django==4.2.0 |
| Install from requirements | pip install -r requirements.txt |
| Export dependencies | pip freeze > requirements.txt |
| Upgrade package | pip install --upgrade requests |
| List installed | pip list |
| Package info | pip show requests |
uv — the future pip:
uv is a Python package installer written in Rust, 10-100x faster than pip. Install it with pip install uv and use it with uv pip install requests.