Conda
Updated by Hongjiang on 09/20/2022
There are two types of conda: Anaconda and Miniconda. Anaconda installs lots of packages by default, which takes longer time and occupies more space; Miniconda only installs basic packages, which can be expanded on demand.
✅ Miniconda Recommended
Conda could be installed by root or every user individually.
Conda could be used to organize python, R, C, java packages.
Download Miniconda
Download Miniconda for your system from Official Website or Tsinghua Mirror.
For example, for x86 Linux systems:
Using Tsinghua Mirror:
Install Miniconda
Type command below and follow the prompts:
Create and Activate Environment
Conda will create base
env after installation. Plz avoid installing too many packages under base
.
Activate the base
env:
Create a new env:
⚠️Note: All packages in the base
environment will be inherited when a new env is created.
Activate the new env:
The name in parentheses will turn to the new env.
Add Channels
Conda only has main
and r
channels by default.
Add Channels from Tsinghua Mirror:
Install Packages
A basic command could be:
-c
could be used to specify the details of a package.