anaconda 使用

视频教程:Get Started with Anaconda

conda --version

列出环境

conda env list

查看conda已安装的依赖

conda list

Conda Workflow

  1. Create an environment
  2. Activate an environment
  3. Install packages
  4. Launch JupyterLab
  5. 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
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9