安装Anaconda
$ sudo sh Anaconda3-5.3.0-Linux-x86_64.sh
[sudo] andrew 的密码:
Welcome to Anaconda3 5.3.0
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> # 按下回车
... # 多次按空格读完license。
Do you accept the license terms? [yes|no]
[no] >>> yes # 输入yes
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
...
[/home/andrew/anaconda3] >>> /usr/local/anaconda3 # 输入自定义目录
... # 安装根据机器性能,通常需要持续几分钟。
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no] #选择no,一般来说自带的spyder和专业IDE wingIDE更好用。
...
Do you wish the installer to initialize Anaconda3
in your /home/andrew/.bashrc ? [yes|no]
[no] >>> # 选择yes
Initializing Anaconda3 in /home/andrew/.bashrc
A backup will be made to: /home/andrew/.bashrc-anaconda3.bak
For this change to become active, you have to open a new terminal.
Thank you for installing Anaconda3!
===========================================================================
Anaconda is partnered with Microsoft! Microsoft VSCode is a streamlined
code editor with support for development operations like debugging, task
running and version control.
To install Visual Studio Code, you will need:
- Administrator Privileges
- Internet connectivity
Visual Studio Code License: https://code.visualstudio.com/license
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>> no
1.修改~/.bashrc
2.添加export PATH=/home/lishanliao/anaconda3/bin:$PATH
3.source ~/.bashrc
查看conda 版本
conda --version
更新conda
conda update conda
conda update anaconda
删除Anaconda
rm -rf /usr/local/anaconda3
删除上面~/.bashrc和/etc/profile的修改
清空隐藏文件: rm -rf ~/.condarc ~/.conda ~/.continuum
© 版权声明
文章版权归作者所有,未经允许请勿转载。