Problem with running Kernel in IPython console
(Spyder maintainer here) You need to rename or remove this file C:\Users\mahkam\datetime.py That’s because that file is using the same name of Python internal module and that confuses other modules that depend on it.