Skip to content

How to set up Miniconda on linux server

Summary

A short How-to post to document how to set up Miniconda on linux server.

Run below line to download Miniconda

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

Warning

Above line downloads file into in current dir, do change dire if you do not want the file to be downloaded into current dir.

Installation

bash Miniconda3-latest-Linux-x86_64.sh

Note

After installing Miniconda, you need to restart current shell or simply run source .bashrc

Conda env set up

To create conda env run below code

conda create -n {name} python={version}

Note

Variables in above command

Env Name

Replace {name} with the name you want the environment to be.

Python version

Replace {version} with the python version you need, e.g. 3.12.

Example:

conda create -n example_env python=3.12


Share on Share on

Comments