PyCharm warns for unresolved reference builtin datetime module

前端 未结 2 800
闹比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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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.

提交回复
热议问题