isolate python env with conda
recently I tried an amazing langchain+LLM project named localGPT and reliazed that I need to review some basic practical knowledge of python.(I might have forgotten most of it.) today I record conda
- 2 options for conda
anaconda vs miniconda, I prefer to miniconda for saving disk space - commands useful
-
conda create -n <env_name> [package]
-
conda activate <env_name>
-
conda info
-
conda env list # list env
-
conda list # list packages installed
-
conda activate <env_name> # swith to env env_name
-
only some commands used frequently are listed here, refer to user guide for others.
I use official config, but it's supported if you want to change the source site of mirrors, epecially in China, if so, please refer to tsinghua mirror in reference.
references
- user guide
- tsinghua mirror