Centos7下安装Anaconda3

  • Centos7下安装Anaconda3已关闭评论
  • 204 views
  • A+
所属分类:编程开发

下载Anaconda

wget https://repo.continuum.io/archive/Anaconda3-5.3.0-Linux-x86_64.sh

或者通过国内的镜像库下载:

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.0-Linux-x86_64.sh

安装Anaconda

[root@k3s ~]# chmod +x Anaconda3-5.3.0-Linux-x86_64.sh 
[root@k3s ~]# ./Anaconda3-5.3.0-Linux-x86_64.sh

根据提示按Enter

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

根据提示输入yes,同意

kerberos (krb5, non-Windows platforms)
 A network authentication protocol designed to provide strong authentication for client/server applications by using secret-key c
ryptography.
cryptography
 A Python library which exposes cryptographic recipes and primitives.
Do you accept the license terms? [yes|no]
[no] >>>yes

选择安装路径,这里直接回车用默认的

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] >>>

是否生成.bashrc文件,填yes

installing: seaborn-0.9.0-py37_0 ...
installing: anaconda-5.3.0-py37_0 ...
installation finished.
Do you wish the installer to initialize Anaconda3
in your /root/.bashrc ? [yes|no]
[no] >>> yes

是否安装VSCode,我这里是文本界面,用不上,所有就是no

Visual Studio Code License: https://code.visualstudio.com/license
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>>no

source一下环境变量,使其生效。

source /root/.bashrc

测试

输入python,如下

[root@k3s ~]# python
Python 3.7.0 (default, Jun 28 2018, 13:15:42) 
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

输入conda,如下:

 

 

[root@k3s ~]# conda
usage: conda [-h] [-V] command ...
conda is a tool for managing and deploying applications, environments and packages.
Options:
positional arguments:
 command
 clean Remove unused packages and caches.
 config Modify configuration values in .condarc. This is modeled
 after the git config command. Writes to the user .condarc
 file (/root/.condarc) by default.
 create Create a new conda environment from a list of specified
 packages.
 help Displays a list of available conda commands and their help
 strings.
 info Display information about current conda install.
 install Installs a list of packages into a specified conda
 environment.
 list List linked packages in a conda environment.
 package Low-level conda package utility. (EXPERIMENTAL)
 remove Remove a list of packages from a specified conda environment.
 uninstall Alias for conda remove. See conda remove --help.
 search Search for packages and display associated information. The
 input is a MatchSpec, a query language for conda packages.
 See examples below.
 update Updates conda packages to the latest compatible version. This
 command accepts a list of package names and updates them to
 the latest versions that are compatible with all other
 packages in the environment. Conda attempts to install the
 newest versions of the requested packages. To accomplish
 this, it may update some packages that are already installed,
 or install additional packages. To prevent existing packages
 from updating, use the --no-update-deps option. This may
 force conda to install older versions of the requested
 packages, and it does not prevent additional dependency
 packages from being installed. If you wish to skip dependency
 checking altogether, use the '--force' option. This may
 result in an environment with incompatible packages, so this
 option must be used with great caution.
 upgrade Alias for conda update. See conda update --help.
optional arguments:
 -h, --help Show this help message and exit.
 -V, --version Show the conda version number and exit.
conda commands available from other packages:
 build
 convert
 develop
 env
 index
 inspect
 metapackage
 render
 server
 skeleton

 

说明安装好了。

 

 

 

 

 

  • 安卓客户端下载
  • 微信扫一扫
  • weinxin
  • 微信公众号
  • 微信公众号扫一扫
  • weinxin
avatar