Anaconda下的jupyter闪退问题

一、问题描述

之前我的jupyter notebook一直都是好使的,但是前几天要做人脸识别,不知道安装了些什么东西,然后就不好使了!

每次我都是点击Jupyter Notebook(anaconda3)然后会弹出黑色的框,几秒后浏览器就会启动jupyter notebook,但是现在是黑框闪现0.1秒后就没有了。

二、解决方法(最终版)

在anaconda prompt中输入pip install --upgrade --force-reinstall --no-cache-dir jupyter --ignore-installed entrypoints

但是我运行后报错Consider using the `--user` option or check the permissions

那么就在刚才输入的指令后加个--user就好了。

就是输入pip install --upgrade --force-reinstall --no-cache-dir jupyter --ignore-installed entrypoints --user

那么现在在anaconda prompt 中再输入jupyter notebook 或者直接在快捷栏中点击Jupyter Notebook(anaconda3)都是可以启用了的。

三、其他问题

我还遇到了ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\HP\anaconda3\lib\site-packages\markupsafe\__init__.py)这种错误,查了一下说是因为markupsafe库的版本不兼容导致的,可以使用图中语句更新一下。

conda update markupsafe

  • 12
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值