I'm use 2 python IDE's in my system one is spyder and another one is python IDLE whenever I import a module in spyder it works the same code doesn't works in python IDLE it shows error.
I also had the same problem but this fixed it pip3 install flask
ModuleNotFoundError: No module named 'pywhatkit'