2

I am using Jupyter notebook to try out the Podman python package (https://pypi.org/project/podman/3.2.1/). However, even after intalling the podman package, I am getting ModuleNotFoundError: No module named 'podman'.

Here is the screenshot for my jyupter notebook:

enter image description here

I am using Python 3.9 and pip 21.2.4. What am I missing here (I am relatively new to Python).

Davide Madrisan
  • 1,969
  • 2
  • 14
  • 22
Kuldeep Jain
  • 8,409
  • 8
  • 48
  • 73

1 Answers1

1

Got this answer based on @SamBob's comment and corresponding 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).

So, %pip install podman worked for me.

Kuldeep Jain
  • 8,409
  • 8
  • 48
  • 73