错误一:jupyter notebook.exe闪退
打开jupyter notebook,出现0.1秒的黑框,然后闪退了。
解决办法1:
在anaconda prompt里输入:
pip install --upgrade --force-reinstall --no-cache-dir jupyter --ignore-installed entrypoints
仍然打不开,在prompt中输入jupyter notebook,显示:
(base) C:\Users\dell>jupyter notebook
C:\Users\dell\Anaconda3\lib\site-packages\jupyter_client\__init__.py:23: UserWarning: Could not import submodules
warnings.warn("Could not import submodules")
Traceback (most recent call last):
File "C:\Users\dell\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\dell\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 77, in <module>
from .services.kernels.kernelmanager import MappingKernelManager, AsyncMappingKernelManager
File "C:\Users\dell\Anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 18, in <module>
from jupyter_client.session import Session
File "C:\Users\dell\Anaconda3\lib\site-packages\jupyter_client\session.py", line 54, in <module>
from jupyter_client.jsonutil import extract_dates
File "C:\Users\dell\Anaconda3\lib\site-packages\jupyter_client\jsonutil.py", line 15, in <module>
from dateutil.parser import parse as _dateutil_parse # type: ignore
ModuleNotFoundError: No module named 'dateutil'
解决方案2:
conda install python-dateutil
如果仍然解决不了,输入解决方案3:
conda install --force-reinstall python-dateutil