如何使用wget安装最新的Anaconda

use*_*629 16 python linux wget anaconda

我正在寻找在我的服务器上通过wget安装anaconda.我遇到过https://askubuntu.com/questions/505919/installing-anaconda-python-on-ubuntuhttp://ericjonas.com/anaconda.html这看起来很有希望.在撰写本文时,当前版本(https://www.continuum.io/downloads#_unix)为4.0.我怎样才能获得最新版本.

Bru*_*cci 26

wget只是下载文件...

对于python 2.7:

wget https://repo.continuum.io/archive/Anaconda2-2018.12-Linux-x86_64.sh
Run Code Online (Sandbox Code Playgroud)

for python3.X:

wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh
Run Code Online (Sandbox Code Playgroud)

这是一个shell脚本,可以指导您完成安装.

在下载文件的文件夹中运行以下行以启动指导安装...

对于python 2.7:

bash Anaconda2-2018.12-Linux-x86_64.sh
Run Code Online (Sandbox Code Playgroud)

对于Python 3.X:

bash Anaconda3-2018.12-Linux-x86_64.sh
Run Code Online (Sandbox Code Playgroud)

检查最新的回购或如果您想要任何特定版本:https: //repo.continuum.io/archive/

  • 找到最新版本,wget后改。正如上面的评论所指出的。在页面查找:https://www.anaconda.com/download/#macos (2认同)

phi*_*per 10

这将从网站上抓取 html 下载最新的 anaconda 版本:

wget -O - https://www.anaconda.com/distribution/ 2>/dev/null | sed -ne 's@.*\(https:\/\/repo\.anaconda\.com\/archive\/Anaconda3-.*-Linux-x86_64\.sh\)\">64-Bit (x86) Installer.*@\1@p' | xargs wget
Run Code Online (Sandbox Code Playgroud)


Sör*_*ren 6

这将为您提供适用于 64 位 Linux 环境的最新 miniconda 3:

  1. 用 wget 下载软件
  2. 分配执行权
  3. 执行并遵循指示
  4. 加载 .bashrc 以更新 PATH 环境变量
  5. 更新康达
  6. 安装点
  7. 创造环境

...

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc

# now update conda and install pip
conda update conda
conda install pip

# (optional) create and activate an environment
conda create -n py3 python pandas scikit-learn jupyter
source activate py3
Run Code Online (Sandbox Code Playgroud)

  • @Regressor(未经测试)尝试“-b”选项。另外“-help”还为您提供安装选项。 (2认同)