Installation path:
/root/anaconda3
Basic commands:
Deactivate the current environment:
conda deactivate
Create a new environment:
# Create a new environment with default Python version conda create -n newenv # Or create a new environment with a specific Python version conda create -n myenv python=3.11
Activate a created environment:
conda activate newenv
List all environments:
conda env list
Install a package (e.g., numpy) in the active environment:
conda install numpy
Update a package (e.g., numpy):
conda update numpy
Remove a package:
conda remove numpy
List installed packages in current environment:
conda list