Skip to content

Instantly share code, notes, and snippets.

@discdiver
discdiver / virtual-environment-setup-for-python.md
Last active February 20, 2025 16:41
Common conda and venv commands

Set up and use a Python virtual environment

Python virtual environment management can be tricky, but it's essential for isolating dependencies.

You have several options for virtual environment managers. We provide instructions for uv, venv, and conda below.

uv is relatively new, but it's the fastest and becoming very popular. If you don't already have a Python virtual environment manager, we suggest using it.

Option 1: uv