一、问题描述
之前我的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