Getting in Jupyter notebook: ModuleNotFoundError: No module named 'podman'

Getting in Jupyter notebook: ModuleNotFoundError: No module named 'podman'

我正在使用 Jupyter Notebook 试用 Podman python 软件包 (https://pypi.org/project/podman/3.2.1/)。 但是,即使在安装 podman 软件包之后,我也会得到 ModuleNotFoundError: No module named 'podman'.

这是我的 jyupter notebook 的截图:

我正在使用 Python 3.9 和 pip 21.2.4。我在这里错过了什么(我对 Python 比较陌生)。

根据@SamBob 的评论和相应的 SO post 得到了这个答案。

In IPython (jupyter) 7.3 and later, there is a magic %pip and %conda command that will install into the current kernel (rather than into the instance of Python that launched the notebook).

所以,%pip install podman 对我有用。