小编cri*_*tor的帖子

诗歌安装的 ipython 内核中出现 ModuleNotFoundError

我正在尝试在诗歌虚拟环境中使用 Jupyter Notebooks,但是ModuleNotFoundError在尝试导入已经由诗歌安装(和管理)的 python 包时出现问题。

我正在运行 python v3.8.5、poetry v1.1.13 和 PyCharm 2022.1.1。

我已经添加了jupyteripykernel作为依赖项,并且可以确认它们已添加到两者中pyproject.toml

jupyter = "^1.0.0"
ipykernel = "^6.13.0"
Run Code Online (Sandbox Code Playgroud)

poetry.lock

[[package]]
name = "ipykernel"
version = "6.13.0"
description = "IPython Kernel for Jupyter"
category = "dev"
optional = false
python-versions = ">=3.7"


[[package]]
name = "jupyter"
version = "1.0.0"
description = "Jupyter metapackage. Install all the Jupyter components in one go."
category = "dev"
optional = false
python-versions = "*" …
Run Code Online (Sandbox Code Playgroud)

ipython python-3.x jupyter jupyter-notebook python-poetry

6
推荐指数
1
解决办法
1395
查看次数