首页 > 解决方案 > ImportError:Jupyter 笔记本中没有名为“IPython.core.profiledir”的模块

问题描述

当我打开一个 jupyter-notebook 并选择带有 python 版本 3.6 的新 python 文件时。它给出了一个错误,但是当我选择 python 版本 2 时,它工作正常。我想在 python 3 上工作。

错误

Traceback (most recent call last):
  File "/home/khawar/anaconda3/envs/deepface3.5/lib/python3.5/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/khawar/anaconda3/envs/deepface3.5/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/khawar/anaconda3/envs/deepface3.5/lib/python3.5/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/khawar/anaconda3/envs/deepface3.5/lib/python3.5/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/home/khawar/anaconda3/envs/deepface3.5/lib/python3.5/site-packages/ipykernel/connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
ImportError: No module named 'IPython.core.profiledir'

标签: python-3.xnumpyjupyter-notebookjupyter

解决方案


推荐阅读