安装 anaconda 过程记录

安装anaconda过程记录(自定义路径)


[root@localhost tools]# sh Anaconda3-5.1.0-Linux-x86_64.sh 

Welcome to Anaconda3 5.1.0

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue     #回车键继续
>>> 
===================================
Anaconda End User License Agreement
===================================

Copyright 2015, Anaconda, Inc.

All rights reserved under the 3-clause BSD License:
……
…… 
Do you accept the license terms? [yes|no]
[no] >>> 
Please answer 'yes' or 'no':'
>>> yes    #yes 同意协议

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

  - Press ENTER to confirm the location     #enter 确认安装在默认路径
  - Press CTRL-C to abort the installation  #放弃安装
  - Or specify a different location below   # 自定义路径

[/root/anaconda3] >>> /opt/anaconda3  # 输入路径
PREFIX=/opt/anaconda3
installing: python-3.6.4-hc3d631a_1 ...
Python 3.6.4 :: Anaconda, Inc.
installing: ca-certificates-2017.08.26-h1d4fec5_0 ...
……
……
installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /root/.bashrc ? [yes|no]  #加入环境变量
[no] >>>  y

Appending source /icooper/anaconda3/bin/activate to /root/.bashrc
A backup will be made to: /root/.bashrc-anaconda3.bak


For this change to become active, you have to open a new terminal.

Thank you for installing Anaconda3!

===========================================================================

Anaconda is partnered with Microsoft! Microsoft VSCode is a streamlined
code editor with support for development operations like debugging, task
running and version control.

To install Visual Studio Code, you will need:
  - Administrator Privileges
  - Internet connectivity

Visual Studio Code License: https://code.visualstudio.com/license

Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>> no  # 是否安装vscode 
[root@localhost tools]# 

安装完成!

常用操作

  1. jupyter 安装kernel
    我的新Python环境是 tensor_py27
(tensor_py27) [root@localhost my_mnist]# conda install ipykernel
……
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(tensor_py27) [root@localhost my_mnist]# python -m ipykernel install --name tensor_py27
Installed kernelspec tensor_py27 in /usr/local/share/jupyter/kernels/tensor_py27

猜你喜欢

转载自blog.csdn.net/jobbofhe/article/details/79761526
今日推荐