赞
踩
win+R打开cmd后,输入jupyter notebook无法直接跳转出现以下错误
PS C:\Users\TY\Desktop> jupyter notebook Traceback (most recent call last): File "C:\Users\TY\AppData\Roaming\Python\Python37\site-packages\nbformat\_version.py", line 6, in <module> from importlib.metadata import version ModuleNotFoundError: No module named 'importlib.metadata' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\wnwork\anaconda\Scripts\jupyter-notebook-script.py", line 6, in <module> from notebook.notebookapp import main File "C:\Users\TY\AppData\Roaming\Python\Python37\site-packages\notebook\notebookapp.py", line 80, in <module> from .services.contents.manager import ContentsManager File "C:\Users\TY\AppData\Roaming\Python\Python37\site-packages\notebook\services\contents\manager.py", line 17, in <module> from nbformat import sign, validate as validate_nb, ValidationError File "C:\Users\TY\AppData\Roaming\Python\Python37\site-packages\nbformat\__init__.py", line 12, in <module> from ._version import __version__, version_info File "C:\Users\TY\AppData\Roaming\Python\Python37\site-packages\nbformat\_version.py", line 8, in <module> from importlib_metadata import version # type:ignore File "C:\Users\TY\AppData\Roaming\Python\Python37\site-packages\importlib_metadata\__init__.py", line 6, in <module> import zipp ModuleNotFoundError: No module named 'zipp'
在网上搜索了多种方法
- 我的解决方法:
在cmd中输入如下命令行:
pip uninstall importlib_metadata
pip install importlib_metadata --force-reinstall
即可解决
建议:如果conda下载不行,要及时换成pip进行下载
希望能给大家提供帮助~
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。