You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何彻底卸载Jupyter?使用pip uninstall命令无法干净卸载

彻底卸载Jupyter的有效方案

别着急,pip uninstall jupyter没彻底卸载太正常了——Jupyter是个由多个关联包组成的套件,只卸载主包根本清不干净。试试下面这套完整的卸载流程,保证给你彻底清除:

  • 第一步:列出所有Jupyter关联包
    先把系统里所有带Jupyter标识的包都找出来,运行对应命令:

    # Linux/macOS 用户
    pip list | grep -i jupyter
    
    # Windows 用户(用PowerShell或CMD)
    pip list | findstr /i jupyter
    
  • 第二步:批量卸载所有关联包
    把上面列出的所有包一次性卸载干净,避免遗漏:

    # Linux/macOS 用户(一键批量卸载)
    pip uninstall -y $(pip list | grep -i jupyter | awk '{print $1}')
    
    # Windows 用户(手动把所有找到的包名用空格分隔)
    pip uninstall -y jupyter jupyter-core jupyter-client jupyter-console ...(替换成你列出的所有包)
    

    这里的-y参数是自动确认卸载,不用反复按回车。

  • 第三步:清理残留的配置和数据目录
    包卸载完后,还会留下一些本地配置、缓存文件,手动删掉这些目录:

    • Linux/macOS:打开终端,运行rm -rf ~/.jupyter ~/.local/share/jupyter ~/.cache/jupyter
    • Windows:打开文件资源管理器,删除C:\Users\<你的用户名>\.jupyter和%APPDATA%\jupyter这两个目录
  • 第四步:验证卸载结果
    最后做个检查,确认彻底卸载:

    pip list | grep -i jupyter
    

    如果没有任何输出,再尝试运行jupyter notebook,如果提示“command not found”(Windows下提示“'jupyter' 不是内部或外部命令...”),就说明已经彻底清除干净了。

内容的提问来源于stack exchange,提问作者guorui

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 10:14:36