进入安装Anaconda入口

从官网下载所需的版本后,执行以下命令,开始安装过程,这里提示接下来是许可协议,不用任何输入,直接Enter回车继续

[root@master boya]# bash Anaconda3-4.4.0-Linux-x86_64.sh 

Welcome to Anaconda3 4.4.0 (by Continuum Analytics, Inc.)

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 

许可协议有很多页。如果没看到让你输入的地方即末行显示–More–,可以按Z键翻页,或者按Q跳到最后

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
===================================
Anaconda End User License Agreement
===================================

Copyright 2017, Continuum Analytics, Inc.

All rights reserved under the 3-clause BSD License:

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of Continuum Analytics, Inc. ("Continuum") nor the names
of its contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL CONTINUUM ANALYTICS, INC. BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
--More--

输入yes接受许可协议

cryptography
A Python library which exposes cryptographic recipes and primitives.

Do you approve the license terms? [yes|no]

>>> yes

确认Anaconda的安装位置

Anaconda默认按照位置是用户的home目录下的anaconda目录,这里我是root用户登录,我给修改为/usr/local/src目录下,确认后开始进行安装

Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/root/anaconda3] >>> /usr/local/src/anaconda3

修改.bashrc脚本将Anaconda目录添加到PATH中

等待安装几分钟后,会询问是否将Anaconda目录添加到.bashrc文件的PATH中,输入yes

installing: conda-4.3.21-py36_0 ...
installing: conda-env-2.6.0-0 ...
Python 3.6.1 :: Continuum Analytics, Inc.
creating default environment...
installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /root/.bashrc ? [yes|no]
[no] >>> yes

输入yes后,会在当前用户的.bashrc文件中自动追加以下内容

# added by Anaconda3 4.4.0 installer
export PATH="/usr/local/src/anaconda3/bin:$PATH"

刷新.bashrc文件

最后别忘了source一下,完成安装

[root@master boya]# source /root/.bashrc
GitHub 加速计划 / li / linux-dash
6
1
下载
A beautiful web dashboard for Linux
最近提交(Master分支:3 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐