美文网首页程序员
windows10下安装IPython notebook 用来查

windows10下安装IPython notebook 用来查

作者: 打豆豆的不要 | 来源:发表于2016-08-02 10:52 被阅读608次

    在github下有部分文档是以.ipynb格式存档的,所以在windows10环境下安装IPython notebook,期间遇到一些问题记录下来。
    步骤:
    1、到python.org去下载python3.5.msi,因为是windows环境python2.7就算了吧
    2、将python3.5配置进环境变量(安装时选择加入环境变量也行),cmd下输入

    c:>set PATH=%PATH%;c:\Python35;c:\Python35\Scripts
    

    3、安装pip和easy_install包管理(一般情况下自带的)
    下载ez_setup.py 到某一个目录(如: c:\tools\ez_setup.py), 下载地址
    下载完后

    cd c:\tools\
    python ez_setup.py install
    

    easy_install 就安装好了,接着是pip

    easy_install pip
    

    4、安装ipython pyzmq jinja2 tornado jupyter,这些都是打开.ipynb文件的前提

    pip install ipython
    easy_install pyzmq
    easy_install jinja2
    easy_install tornado
    pip install jupyter
    
    • 有些机子在安装jinja2时会报告一个error

    error: Setup script exited with error: [Error 2]

    是编译错误,是因为缺少编译环境Microsoft Visual C++ Compiler for Python 2.7,python3.5貌似没这个问题。

    • jupyter如果不安装会报告

    ImportError: No module named notebook.notebookapp

    5、到存放.ipynb文件的文件夹,shift+右键 选择在此处打开命令窗口,如图1

    图1

    在cmd下输入

    ipython notebook
    

    会自动在浏览器里打开一个文件管理页面,想看那本书双击就是

    相关文章

      网友评论

        本文标题:windows10下安装IPython notebook 用来查

        本文链接:https://www.haomeiwen.com/subject/xnefsttx.html