Search code examples
pythonopenweathermap

ModuleNotFoundError: No module named 'citipy' error


I was trying to do a weather api related python program and initially while running the dependencies there was a error that occurred which reads as 'No module named 'citipy' error'.

But i used from citipy import city command initially and even installed citipy using pip install citipy and upgraded it too.

The error still persists. Please help.


Solution

  • I was able to solve it by just changing the kernel. I don't know how kernel affects when your trying to import a module, but it worked for me.