我是靠谱客的博主 糊涂蜡烛,最近开发中收集的这篇文章主要介绍安装 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

最后

以上就是糊涂蜡烛为你收集整理的安装 anaconda 过程记录的全部内容,希望文章能够帮你解决安装 anaconda 过程记录所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部