jupyter的卸载与安装

如何彻底卸载Jupyter

  1. 彻底卸载jupyter的方法
    pip uninstall jupyter -y
    pip uninstall jupyter_core -y
    pip uninstall jupyter-client -y
    pip uninstall jupyter-console -y
    pip uninstall notebook -y
    pip uninstall qtconsole -y
    pip uninstall nbconvert -y
    pip uninstall nbformat -y

  2. 安装:

    pip install pip-autoremove
    pip-autoremove jupyter -y

    pip install jupyter notebook --upgrade --force-reinstall --no-cache-dir

    --upgrade 更新
    --force-reinstall 强行重装
    --no-cache-dir 不再指定缓存目录

  3. 做好以上操作,安装tslab,增加Typescript jupyter notebook环境
    // 全局安装tslab
    npm install -g tslab
    // 查看tslab安装的版本,判断是否成功
    tslab install --version
    // 注册tslab到python环境中
    tslab install [--python=python3]
    // 安装tslab的jslab与tslab内核
    tslab install
    // 检查可以用的内核
    jupyter kernelspec list

  4. 若出现console.log()不能使用,则可以npm install -D tslib @types/node

posted @ 2023-02-08 23:50  feishi312  阅读(914)  评论(0编辑  收藏  举报