因为特殊原因,自己的系统经常要重装,写个笔记。
1.下载anaconda
2.安装
在下载好的文件夹中ctrl+alt+T打开命令行,输入代码
bash Anaconda3-5.1.0-Linux-x86_64.sh
按步骤来
狂按空格到下面安装:
会显示以下数据
Welcome to Anaconda3 5.1.0
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
询问你看完了条例,是否安装?
按ENTER
Do you accept the license terms? [yes|no]
接受以上条例吗?
输入yes
Anaconda3 will now be installed into this location:
/home/zy/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
- 按 ENTER 本地设置
- 按 CTRL-C 中断安装
- 或在下面指定其他位置
这里果断按ENTER
然后会有一行行的install
显示
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/zy/.bashrc ? [yes|no]
[no] >>>
安装到本地文件吗?
输入yes
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/zy/.bashrc ? [yes|no]
[no] >>>
安装环境到你的系统吗?
输入yes
你会发现输入命令
gedit ~/.bashrc
# 最下面有
#added by Anaconda3 installer
export PATH="/home/zy/anaconda3/bin:$PATH"
这是安装你的环境变量了。
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
no
你要安装微软的某个神奇的软件不~超好用的?~
谢谢,不用,输入no
以上就是安装和配置的所有细节。下面开始卸载环节
3.卸载
- 删除目录
/home/username/anaconda3
这个文件夹
sudo rm -rf anaconda3
- 打开
gedit ~/.bashrc
,删除和anaconda环境相关的代码即可。
#added by Anaconda3 installer
export PATH="/home/zy/anaconda3/bin:$PATH"
source ~/.bashrc
即可
更新操作
conda update conda # 小操作,分析conda版本,并下载
conda update --all # 大操作,分析包,并下载
安装虚拟环境
https://blog.csdn.net/xinjieyuan/article/details/95738188