当我跑步时jupyter notebook
,我得到了错误
ImportError: No module named enum
在普通的python中,import enum
效果很好。
Python版本是3.8.5。我正在使用Fedora 32,并且在我从Fedora 31升级之前,jupyter仍然有效。
jupyter --version
说
jupyter core : 4.6.1
jupyter-notebook : 6.1.3
qtconsole : 4.7.6
ipython : 7.16.1
ipykernel : 5.3.4
jupyter client : 6.1.7
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.7
traitlets : 4.3.3
如何修复Jupyter Notebook?
来自评论:
import sys
sys.version_info
说
sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)
我尝试过,pip install enum34
但之后jupyter notebook
仍然显示相同的错误。
我卸载了jupyter笔记本,然后重新安装了两次。那使问题消失了。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句