ModuleNotFoundError: No module named pyjanitor despite pyjanitor being installed

164 Views Asked by At

I've confirmed the pyjanitor package is installed - it shows up in pip list and I get a confirmation if I try to reinstall with pip install pyjanitor. But then when I run import pyjanitor I get the error:

No module named 'pyjanitor'

What am I doing wrong?

1

There are 1 best solutions below

0
Sam Firke On BEST ANSWER

The package name is pyjanitor but it is imported as janitor:

import janitor

This is a case of this phenomenon: Why are some Python package names different than their import name?