anaconda 使用
视频教程:Get Started with Anaconda
conda --version
列出环境
conda env list
查看conda已安装的依赖
conda list
Conda Workflow
- Create an environment
- Activate an environment
- Install packages
- Launch JupyterLab
- Deactivate an environment
You should always create a new environment for your work. Never work in (base)!
创建环境
conda create --name example
激活环境
conda activate example
使用 conda 安装依赖
conda install jupyterlab dask pandas hvplot
安装 conda-forge
conda install -c conda-forge condastats
开启 jupyter-lab
jupyter-lab
jupyter notebook
jupyter lab
退出当前环境
conda deactivate
其他
创建环境时,指定 python 版本
conda create --name example39 python=3.9
导出环境
conda env export >defaultpy39env.yml