Mac Conda 全操作总结
Anaconda 安装
$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
$ conda config --set show_channel_urls_yes
Conda 虚拟环境进入
- 激活虚拟环境
$ conda init bash/zsh
** 然后重启Terminal
- 取消激活
$ conda config --set auto_activate_base false
# 将false改为true设置默认环境为conda
** 然后重启Terminal
- 在虚拟环境中安装包
$ conda install package
Anaconda Jupyter Notebook
由于Anaconda base环境中拥有
* jupyter notebook
* python(python2.7)
* python3(python3.9)
的相应安装包,所以可以直接在base环境中使用
$ (base) jupyter notebook
启动jupyter notebook
- 修改默认文件夹位置, 参考资料在这里
- 为jupyter notebook 添加新的kernel