Python 3 · Virtual environments

Activate it

Use the environment's Python and packages in this shell. Once active, python and pip refer to the environment, so the pip commands below use python. On Windows run .venv\Scripts\activate.

source .venv/bin/activate

Official Python 3 documentation

More virtual environments commands

All virtual environments commands · Python 3 cheatsheet

Was this page helpful?