如何在Debian 10上安装Anaconda Python发行版

介绍 (Introduction)

Anaconda is an open-source package manager, environment manager, and distribution of the Python and R programming languages. Designed for data science and machine learning workflows, Anaconda is commonly used for large-scale data processing, scientific computing, and predictive analytics.

Anaconda是一个开源软件包管理器,环境管理器,以及Python和R编程语言的发行版。 Anaconda专为数据科学和机器学习工作流程而设计,通常用于大规模数据处理,科学计算和预测分析。

Offering a collection of over 1,000 packages to support users working with data, Anaconda is available in both free and paid enterprise versions. The Anaconda distribution ships with the conda command-line utility. You can learn more about Anaconda and conda by reading the official Anaconda Documentation.

Anaconda提供了1,000多种软件包的集合来支持用户处理数据,并提供了免费和付费企业版本。 Anaconda发行版随附conda命令行实用程序。 您可以通过阅读Anaconda官方文档了解有关Anaconda和conda的更多信息。

This tutorial will guide you through installing the Python 3 version of Anaconda on a Debian 10 server.

本教程将指导您在Debian 10服务器上安装Anaconda的Python 3版本。

先决条件 (Prerequisites)

Before you begin with this guide, you should have a non-root user with sudo privileges set up on your server.

在开始本指南之前,您应该在服务器上设置具有sudo特权的非root用户。

You can achieve this prerequisite by completing our Debian 10 initial server setup guide.

您可以通过完成Debian 10初始服务器设置指南来达到此先决条件。

安装Anaconda (Installing Anaconda)

To install Anaconda on a Debian 10 server, you should download the latest Anaconda installer bash script, verify it, and then run it.

要在Debian 10服务器上安装Anaconda,您应该下载最新的Anaconda安装程序bash脚本,进行验证,然后运行它。

Find the latest version of Anaconda for Python 3 at the Anaconda Distribution page. At the time of writing, the latest version is 2019.03, but you should use a later stable version if it is available.

Anaconda发行页面中找到适用于Python 3的最新版本的Anaconda。 在撰写本文时,最新版本是2019.03,但如果有可用的,则应使用更高的稳定版本。

Next, change to the /tmp directory on your server. This is a good directory to download ephemeral items, like the Anaconda bash script, which we won’t need after running it.

接下来,转到服务器上的/tmp目录。 这是下载临时项目(例如Anaconda bash脚本)的好目录,运行该目录后我们将不需要它。

  • cd /tmp

    cd / tmp

We’ll use the curl command-line tool to download the script. Install curl:

我们将使用curl命令行工具下载脚本。 安装curl:

sudo apt install curl

Now, use curl to download the link that you copied from the Anaconda website:

现在,使用curl下载您从Anaconda网站复制的链接:

  • curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh

    curl -O https://repo.anaconda.com/archive/Anaconda3- 2019.03 -Linux-x86_64.sh

At this point, we can verify the data integrity of the installer with cryptographic hash verification through the SHA-256 checksum. We’ll use the sha256sum command along with the filename of the script:

在这一点上,我们可以通过SHA-256校验和通过密码哈希验证来验证安装程序的数据完整性。 我们将使用sha256sum命令以及脚本的文件名:

  • sha256sum Anaconda3-2019.03-Linux-x86_64.sh

    sha256sum Anaconda3- 2019.03 -Linux-x86_64.sh

You’ll receive output that looks similar to this:

您将收到类似于以下内容的输出:


   
   
   
Output
45c851b7497cc14d5ca060064394569f724b67d9b5f98a926ed49b834a6bb73a Anaconda3-2019.03-Linux-x86_64.sh

You should check the output against the hashes available at the

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值