ModuleNotFoundError:没有名为“ipytest.magics”的模块

2024-04-18 00:35:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我是Jupyter notebook的新手,在尝试运行以下代码时:

import sys
!{sys.executable} -m pip install pytest
!{sys.executable} -m pip install ipytest

import ipytest.magics
import pytest

我遇到了模块错误。以上代码都没有导致任何问题。原因是什么?我能做些什么来解决它? (我的Python版本是3.7.4)


Tags: 模块installpip代码importpytest错误sys

热门问题