Anaconda 是一个开源的 Python 发行版,包含了 Python 解释器、NumPy、SciPy、Pandas、Matplotlib 等常用科学计算库。Anaconda 提供了一个统一的环境,用于安装和管理 Python 软件包。包含了丰富的科学计算库,可以满足日常的科学计算需求。支持 Windows、macOS 和 Linux 等平台。本文主要介绍Linux上,通过命令行的方式安装配置Anaconda(conda)。

1、下载Anaconda安装文件

下载地址:

https://repo.anaconda.com/archive/

或者

https://docs.conda.io/en/latest/miniconda.html

与需要安装指定的版本,可以通过上面的下载地址,找到相应的版本。

下面的命令下载64 位 linux 的安装程序:

wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh

2、执行安装文件

bash Anaconda3-2020.07-Linux-x86_64.sh

3、安装脚本

下面脚本在Ubuntu上Python 3上使用,其它版本可以自行测试一下

# 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-5.0.1-Linux-x86_64.sh
bash Anaconda3-5.0.1-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda3-5.0.1-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc 
# Refresh basically
source .bashrc
conda update conda

推荐文档

相关文档

大家感兴趣的内容

随机列表