zoukankan      html  css  js  c++  java
  • Ubuntu16.04 Jupyter安装(Ipython Notebook安装)

    Jupyter Notebook是一个Web应用程序,允许您创建和共享包含实时代码,方程,可视化和说明文本的文档。

    简单的介绍就是:Jupyter Notebook是Ipython的升级版,而Ipython可以说是一个加强版的交互式 Shell,也就是说,它比在terminal里运行python会更方便,界面更友好

    环境:

    Ubuntu16.04 64位

    1. 安装pip

    (1)更新和升级包 

    1. sudo apt-get update  
    2. sudo apt-get upgrade  


    (2)安装pip
     

     
    1. sudo apt-get install python-pip  


    2. 安装Jupyter

    (1)升级pip 

    1. sudo pip install --upgrade pip  


    (2)安装Jupyter

    1. sudo pip install jupyter  

    安装到一半,突然报错,

    File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 246, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
    ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.

    查看一下端口,发现pycharm占用,关闭,

    重新输入 pip install jupyter

    3.运行Jupyter

     
    1. jupyter notebook  

    会直接在浏览器打开jupyter notebook
     
     
    这里插入一点,千万不能在root权限下运行,,不然会出现

    [C 16:20:11.182 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.

     
     
  • 相关阅读:
    非旋Treap——fhq treap
    LCA
    树链剖分
    复习计划
    BZOJ2565: 最长双回文串(回文树)
    回文自动机
    luogu P3796 【模板】AC自动机(加强版)
    【BZOJ2908】 又是nand
    【HDU2460】 Network
    【CF786B】 Legacy
  • 原文地址:https://www.cnblogs.com/KK150713/p/7569261.html
Copyright © 2011-2022 走看看