【Python】安装IPython和IPthon Notebook

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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值