zoukankan      html  css  js  c++  java
  • Windows 完全删除 jupyter notebook

    首先,执行以下命令:

    pip install pip-autoremove
    pip-auto remove jupyter -y
    

    上面的命令其实是安装了 pip-autoremove 这个库,然后用 pip-autoremove 来删除 jupyter 所依赖的相关库。

    这样其实还没有卸载干净,我们还需要用 pip list 命令来查看和 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
    

    -y 在这里表示遇到需要选择的选项全部选 y (yes)。

    然后,在 cmd 命令行中进行如下操作:

    Windows%20%E5%AE%8C%E5%85%A8%E5%88%A0%E9%99%A4%20jupyter%20notebook%20fc03fcb5828e475a9dab97f87055a594/Untitled.png

    即:

    from jupyter_core.paths import jupyter_path
    print(jupyter_path())
    

    最后,将上面列出的所有相关的 jupyter 文件都删除即可,这样,再次安装 jupyter notebook 就是全新的 jupyter notebook 了。

  • 相关阅读:
    django自学
    Oracle
    Linux查看日志常用命令
    Appium使用
    jmeter性能测试
    数据库连接
    redis相关
    ubuntu系统软件安装以及相关命令
    LINUX远程强制重启/proc/sys/kernel/sysrq /proc/sysrq-trigger
    sqlserver查询表大小
  • 原文地址:https://www.cnblogs.com/fanlumaster/p/14351446.html
Copyright © 2011-2022 走看看