如何使用 wget 安装最新的 Anaconda
How can I install the latest Anaconda with wget
我正在考虑通过 wget 在我的服务器上安装 anaconda。我遇到过 https://askubuntu.com/questions/505919/installing-anaconda-python-on-ubuntu and http://ericjonas.com/anaconda.html and it looks promising . As of this writing the current version( https://www.continuum.io/downloads#_unix ) 是 4.0 。我怎样才能得到最新版本。
wget 只是下载文件...
对于 python 2.7 :
wget https://repo.continuum.io/archive/Anaconda2-2018.12-Linux-x86_64.sh
对于 python3.X:
wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh
这是一个 shell 脚本,可指导您完成安装。
运行 下载文件文件夹内的以下行开始引导安装...
对于 python 2.7:
bash Anaconda2-2018.12-Linux-x86_64.sh
对于 Python 3.X:
bash Anaconda3-2018.12-Linux-x86_64.sh
检查最新的回购或者如果你想要任何特定的版本在这里:
https://repo.continuum.io/archive/
这将为您提供适用于 64 位 Linux 环境的最新 miniconda 3:
- 用wget下载软件
- 分配执行权
- 执行并按照说明进行操作
- 加载 .bashrc 以更新 PATH 环境变量
- 更新 conda
- 安装 pip
- 营造环境
...
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
这将从以下网站抓取 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.*@@p' | xargs wget
您可以编写以下 bash 脚本来自动执行安装过程。
cd ~
wget https://repo.continuum.io/archive/Anaconda3-2020.11-Linux-x86_64.sh
bash Anaconda3-2020.11-Linux-x86_64.sh -b -p ~/anaconda3
rm Anaconda3-2020.11-Linux-x86_64.sh
echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc
# Reload default profile
conda init
source ~/.bashrc
我正在考虑通过 wget 在我的服务器上安装 anaconda。我遇到过 https://askubuntu.com/questions/505919/installing-anaconda-python-on-ubuntu and http://ericjonas.com/anaconda.html and it looks promising . As of this writing the current version( https://www.continuum.io/downloads#_unix ) 是 4.0 。我怎样才能得到最新版本。
wget 只是下载文件...
对于 python 2.7 :
wget https://repo.continuum.io/archive/Anaconda2-2018.12-Linux-x86_64.sh
对于 python3.X:
wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh
这是一个 shell 脚本,可指导您完成安装。
运行 下载文件文件夹内的以下行开始引导安装...
对于 python 2.7:
bash Anaconda2-2018.12-Linux-x86_64.sh
对于 Python 3.X:
bash Anaconda3-2018.12-Linux-x86_64.sh
检查最新的回购或者如果你想要任何特定的版本在这里: https://repo.continuum.io/archive/
这将为您提供适用于 64 位 Linux 环境的最新 miniconda 3:
- 用wget下载软件
- 分配执行权
- 执行并按照说明进行操作
- 加载 .bashrc 以更新 PATH 环境变量
- 更新 conda
- 安装 pip
- 营造环境
...
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
这将从以下网站抓取 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.*@@p' | xargs wget
您可以编写以下 bash 脚本来自动执行安装过程。
cd ~
wget https://repo.continuum.io/archive/Anaconda3-2020.11-Linux-x86_64.sh
bash Anaconda3-2020.11-Linux-x86_64.sh -b -p ~/anaconda3
rm Anaconda3-2020.11-Linux-x86_64.sh
echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc
# Reload default profile
conda init
source ~/.bashrc