python-3.x - 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'
解决方案
推荐阅读
- java - 如何让 Emoji 在 Mac OS 上的 Java Swing 小部件中呈现?
- autohotkey - 将一个函数的输出作为参数传递给另一个函数
- node.js - FetchError:对 https://discord.com/api/v7/gateway/bot 的请求失败,原因:无法获取本地颁发者证书
- php - 新创建的 PHP Codeception 项目正在运行,没有错误输出
- ruby - 有没有办法在不使用 3 个收集器来组合字符串的情况下重构它?
- excel - 在 Excel 上创建一组合并的对
- python - 使用迭代器创建正则表达式模式
- responsive-design - CSS 打破媒体内容而不是屏幕大小
- clickhouse - Clickhouse:滑动/移动窗口
- jq - jq + 运算符是否渴望?