0

For some reason, whenever I try to import the datetime module, I am unable to do so on whatever text editors I use, I tried it on sublime, VScode, Atom, but I always get the same ImportError.

But if I try using it on Jupiter Notebook, it works pretty fine. No issues at all.

I just can't figure out why that happens:

error

I get the same error on every text editor I use, also, if I try to check the available functions on the datetime module, on VScode, it seems like it is empty:

error

but on jupyter notebook, it just works fine:

error

I installed python on my machine Using Anaconda.

Anyone has any idea of why that happens?

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
Alojarf
  • 21
  • 4

0 Answers0