Ubuntu 安装 IPython、jupyter notebook

    技术2025-09-18  66

    1. 升级 pip

    sudo pip3 install --upgrade pip

    2. 安装 IPython

    IPython 5.x 是最后一个支持 Python2 的 IPython 。

    sudo pip2 install ipython==5.1

    Python3 的用户可通过如下命令安装最新版 IPython 。

    sudo pip3 install ipython

    3. 安装 jupyter

    sudo pip3 install jupyter

    4. 启动

    安装完成后,输入 jupyter notebook 即可启动。

    wohu@ubuntu1804:~/python$ jupyter notebook

    Processed: 0.012, SQL: 9