pip and Python virtual environments: install packages and manage dependencies with Cerewro

Install Python packages with pip, create virtual environments with venv, export requirements.txt and resolve dependency conflicts from Cerewro chat. Without touching the global Python installation.

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

ActionCommand
Install packagepip install requests
Install specific versionpip install Django==4.2.0
Install from requirementspip install -r requirements.txt
Export dependenciespip freeze > requirements.txt
Upgrade packagepip install --upgrade requests
List installedpip list
Package infopip 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.