virtualenv and venv
Create isolated Python environments; venv is built in, virtualenv is the faster third-party original.
Beginner
python -m venv .venv
source .venv/bin/activate # .venv\Scripts\activate on Windows
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.