PyCharm warns for unresolved reference builtin datetime module

前端 未结 2 782
闹比i
闹比i 2021-01-01 18:15

I just installed the latest version of PyCharm (4.5).

Now I am experiencing unresolved reference errors. On the top of my code I have:

from datetime          


        
相关标签:
2条回答
  • 2021-01-01 19:01

    As mentioned here try to delete the content of the skeleton folder. It reside inside of the settingsfolder (~/.PyCharmxxxx.xx/system/python_stubs) Removing/adding the python environment was not necessary for me. Simply restart PyCharm after removing the content (or the whole python_stubs folder)

    This does the trick for me and now it works like a (py)charm again.

    0 讨论(0)
  • 2021-01-01 19:10

    That's a known, already reported at https://youtrack.jetbrains.com/issue/PY-15460

    0 讨论(0)
提交回复
热议问题