JNe*_*ens 19 python ssh command-line anaconda server
我想在远程服务器上安装Anaconda.
服务器正在运行Ubuntu 12.04.
我只能通过SSH访问此服务器.
如何通过命令行安装Anaconda?
kma*_*o23 18
查看Anaconda repo存档页面并选择您要安装的相应版本.
之后,就这样做:
# replace this `Anaconda3-version.num-Linux-x86_64.sh` with your choice
~$ wget -c https://repo.continuum.io/archive/Anaconda3-vers.num-Linux-x86_64.sh
~$ bash Anaconda3-version.num-Linux-x86_64.sh
Run Code Online (Sandbox Code Playgroud)
具体例子:
在撰写本文时,Anaconda3-5.0.1是最新版本.所以,
$ wget -c https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
$ bash Anaconda3-5.0.1-Linux-x86_64.sh
Run Code Online (Sandbox Code Playgroud)
Gre*_*ver 16
有点像:
wget http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-2.1.0-Linux-x86_64.sh
Run Code Online (Sandbox Code Playgroud)
获取64位linux的安装程序后跟:
bash Anaconda-2.x.x-Linux-x86[_64].sh
Run Code Online (Sandbox Code Playgroud)
您可以按照Prashant所说的进行操作,也可以使用bash脚本自动执行安装。只需根据您想要的Python版本简单地复制和粘贴
如果您尝试在命令行中完全使用它,请使用bash脚本 python 2 anaconda install bash脚本:
# Go to home directory
cd ~
# You can change what anaconda version you want at
# https://repo.continuum.io/archive/
wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda2-4.2.0-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc
# Refresh basically
source .bashrc
conda update conda
Run Code Online (Sandbox Code Playgroud)
# Go to home directory
cd ~
# You can change what anaconda version you want at
# https://repo.continuum.io/archive/
wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda3-4.2.0-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc
# Refresh basically
source .bashrc
conda update conda
Run Code Online (Sandbox Code Playgroud)
来源:https : //medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a
| 归档时间: |
|
| 查看次数: |
19226 次 |
| 最近记录: |