我是靠谱客的博主 糊涂蜡烛,这篇文章主要介绍安装 anaconda 过程记录,现在分享给大家,希望可以做个参考。

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

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[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
复制代码
1
2
3
4
5
6
7
(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

最后

以上就是糊涂蜡烛最近收集整理的关于安装 anaconda 过程记录的全部内容,更多相关安装内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(103)

评论列表共有 0 条评论

立即
投稿
返回
顶部