linux上安装anaconda3
sftp:
cd root
lcd …/Anaconda3-5.2.0-Linux-x86_64.sh所在本地路径
put Anaconda3-5.2.0-Linux-x86_64.sh Anaconda3-5.2.0-Linux-x86_64.sh
安装目标路径为/usr/local/anaconda3 ,安装前不要创建anaconda3文件夹
#安装
sh Anaconda3-5.2.0-Linux-x86_64.sh
按enter 、 yes
当执行到:
Anaconda3 will now be installed into this location:
/root/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
安装各种包
[/root/anaconda3] >>> /usr/local/anaconda3 # 输入自定义目录
按enter后,等待,会陆续安装各种包,此处以python-3.6.5为例,您可以安装最新版
PREFIX=/usr/local/anaconda3
installing: python-3.6.5-hc3d631a_2 …
Python 3.6.5 : Anaconda, Inc.
installing: blas-1.0-mkl …
installing: ca-certificates-2018.03.07-0 …
…
You may wish to edit your .bashrc to prepend the Anaconda3 install location to PATH:
export PATH=/usr/local/anaconda3/bin:$PATH
添加环境变量
vi .bashrc
按insert,输入:
export PATH=“/usr/local/anaconda3/bin:$PATH”
按ESC,输入 :wq!
#加载环境变量
source ~/.bashrc
#测试安装是否成功
python
#anaconda3安装包所在路径
/usr/local/anaconda3/lib/python3.6/site-packages





被折叠的 条评论
为什么被折叠?



