Skip to content

Instantly share code, notes, and snippets.

@discdiver
discdiver / virtual-environment-setup-for-python.md
Last active May 1, 2024 14:25
Common conda and venv commands

Set up and use a Python virtual environment

Use conda commands to create and manage a virtual environment and the Python packages inside it.

Download and install Miniconda

Follow the instructions here for your operating system: https://docs.conda.io/en/latest/miniconda.html.

You may be prompted with “Do you wish the installer to initialize Anaconda3 by running conda init?” We recommend “yes”. The default conda virtual environment is named base.