1. 下载 Anaconda
官网下载地址;国内网比较费时;
清华大学开源软件镜像站下载;
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
2. 安装 Anaconda
打开文件下载目录,打开终端,运行.sh文件
进入注册信息页面,输入yes;
阅读注册信息,然后输入yes;查看文件即将安装的位置,按enter,即可安装;
安装完成后,收到加入环境变量的提示信息,输入yes;
提示信息“Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]”,输入no;
重启终端,即可使用Anaconda3;
————————————————
3.常用命令:
3.Anaconda自动进入虚拟环境base?
新版的Anaconda会在每一个新开的terminal里面自动进入虚拟环境base,解决方法是用conda config命令:
conda config --set auto_activate_base false
你一定想问这条命令在哪查的。就是用conda config --describe找到的。
如果你输入:
conda config --describe
你会在下面的一长条描述信息里面看到这样一段:
# # auto_activate_base (bool)
# # Automatically activate the base environment during shell
# # initialization.
# #
# auto_activate_base: true
也就是自动进入base环境,默认是true。
修改为false就好了。
参考:
1. https://blog.csdn.net/sss_369/article/details/99618114
2.https://blog.csdn.net/ben1010101010/article/details/90897405