Skip to content

Instantly share code, notes, and snippets.

@vladimirryzhikov
vladimirryzhikov / conda-commands.md
Created February 26, 2023 23:22 — forked from discdiver/virtual-environment-setup-for-python.md
Common conda and venv commands

Common conda commands

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

Download the Anaconda or Miniconda. Anaconda and miniconda come with Python and pip installed. Anaconda installs many packages and tools that are common for data science. Miniconda is far smaller.

Create environment

conda create -n myenv pandas jupyterlab Create a new conda environment named myenv with the latest version of Python on the main conda channel and have pandas and jupyterlab installed into it.

conda create -n myenv python=3.9 Create a new conda environment named myenv with the Python version specified.