Anaconda是Python的一个开源发行版本,主要面向科学计算。在我看来主要优点是预装了很多第三方库,而且Anaconda中增加了conda install命令,安装新package格外方便,还自带Spyder IDE 和Jupyter Notebook。
Jupyter Notebook是一款开放源代码的Web应用程序,允许您创建和共享包含实时代码,方程式,可视化和叙述文本的文档。用途包括:数据清理和转换,数值模拟,统计建模,数据可视化,机器学习等等。
其实安装的过程直接一直点下一步就可以了
######若conda指令不懂 可以参考我这篇文章:https://blog.csdn.net/qq_39591494/article/details/80561608
C:\Users\Yankerp>conda env list
# conda environments:
#
base * C:\Users\Yankerp\Miniconda3
daasbank C:\Users\Yankerp\Miniconda3\envs\daasbank
yanzan C:\Users\Yankerp\Miniconda3\envs\yanzan
C:\Users\Yankerp>conda create -n yankerp python=3
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.4.10
latest version: 4.5.4
Please update conda by running
$ conda update -n base conda
## Package Plan ##
environment location: C:\Users\Yankerp\Miniconda3\envs\yankerp
added / updated specs:
- python=3
The following NEW packages will be INSTALLED:
certifi: 2018.4.16-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pip: 10.0.1-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python: 3.6.5-h0c2934d_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
setuptools: 39.2.0-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
vc: 14-h0510ff6_3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
vs2015_runtime: 14.0.25123-3 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
wheel: 0.31.1-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
当过程中提示选择yes 或者 no的时候我们选择yes即可
###3.2 安装完成后查看yankerp虚拟开发环境是否存在
C:\Users\Yankerp>conda env list
# conda environments:
#
base * C:\Users\Yankerp\Miniconda3
daasbank C:\Users\Yankerp\Miniconda3\envs\daasbank
yankerp C:\Users\Yankerp\Miniconda3\envs\yankerp
yanzan C:\Users\Yankerp\Miniconda3\envs\yanzan
C:\Users\Yankerp>activate yankerp
(yankerp) C:\Users\Yankerp>conda install jupyter
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.4.10
latest version: 4.5.4
Please update conda by running
$ conda update -n base conda
## Package Plan ##
environment location: C:\Users\Yankerp\Miniconda3\envs\yankerp
added / updated specs:
- jupyter
The following packages will be downloaded:
同样,过程中让选择y/n 我们选择Y即可,以下是部分安装过程截图
(yankerp) C:\Users\Yankerp>pip freeze
backcall==0.1.0
bleach==2.1.3
certifi==2018.4.16
colorama==0.3.9
decorator==4.3.0
entrypoints==0.2.3
html5lib==1.0.1
ipykernel==4.8.2
ipython==6.4.0
ipython-genutils==0.2.0
ipywidgets==7.2.1
jedi==0.12.0
Jinja2==2.10
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.3
jupyter-console==5.2.0
jupyter-core==4.4.0
MarkupSafe==1.0
mistune==0.8.3
nbconvert==5.3.1
nbformat==4.4.0
notebook==5.5.0
pandocfilters==1.4.2
parso==0.2.1
pickleshare==0.7.4
prompt-toolkit==1.0.15
Pygments==2.2.0
python-dateutil==2.7.3
pywinpty==0.5.3
pyzmq==17.0.0
qtconsole==4.3.1
Send2Trash==1.5.0
simplegeneric==0.8.1
six==1.11.0
terminado==0.8.1
testpath==0.3.1
tornado==5.0.2
traitlets==4.3.2
(yankerp) C:\Users\Yankerp>jupyter notebook
[I 01:34:56.932 NotebookApp] Serving notebooks from local directory: C:\study\jupyter
[I 01:34:56.932 NotebookApp] 0 active kernels
[I 01:34:56.933 NotebookApp] The Jupyter Notebook is running at:
[I 01:34:56.933 NotebookApp] http://localhost:8888/?token=035025d62b8167735047aab67e37e5ac3caf9c43d2c7bf12
[I 01:34:56.933 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 01:34:56.935 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=035025d62b8167735047aab67e37e5ac3caf9c43d2c7bf12&token=035025d62b8167735047aab67e37e5ac3caf9c43d2c7bf12
[I 01:34:57.090 NotebookApp] Accepting one-time-token-authenticated connection from ::1
从上图发现我们敲了很多次才敲对一次,但是对于初学者来说这个是非常重要的因为可以记录自己在学习的过程中哪一块会出错。 保存成html如下:
1、首先我们默认是这样的如下:
这时候按esc键 光标会消失随后在按m键–>回车进入编写文本状态
如果要退出代码行默认的话直接安装y键就可以了。
回到文本:解释
一级标题
二级标题
###三级标题 以此类推
如果要在文本中输入命令行用三个 ```表示
列表内容使用 - 表示
写完之后我们要直接看效果的话 按Ctrl+回车即可 内容如下:
再见~~~~~~~