【Python】安装IPython和IPthon Notebook

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/NextAction/article/details/84579623

1. 安装相关包

pip install IPython
pip install urllib3 (安装IPython Notebook的依赖)
pip install jupyter (安装IPython Notebook)
pip install numpy
pip install matplotlib
pip install pandas
pip install scipy
pip install scikit-learn

2. cmd命令行执行:ipython,进入

Microsoft Windows [版本 10.0.17134.407]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Users\long>ipython
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.1.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]:

3. cmd命令行执行:ipython notebook, 粘贴最后的网址,在浏览器中打开,进入web交互窗口,最好使用chrome浏览器

Microsoft Windows [版本 10.0.17134.407]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Users\long>ipython
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.1.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: exit()

C:\Users\long>ipython notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
[I 10:11:26.726 NotebookApp] Serving notebooks from local directory: C:\Users\long
[I 10:11:26.726 NotebookApp] The Jupyter Notebook is running at:
[I 10:11:26.726 NotebookApp] http://localhost:8888/?token=ac6f333e552362cd1854e651b4e44de71b88530df623178d
[I 10:11:26.727 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:11:26.730 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=ac6f333e552362cd1854e651b4e44de71b88530df623178d

猜你喜欢

转载自blog.csdn.net/NextAction/article/details/84579623