Pycharm does not recognise builtin functions
Hi! I am new to PyCharm and seems like it does not recognise Python builtins as it can be seen on the screenshot below. I have tried almost everything that could be possibly done such as:
File > Invatidate caches / restart
I have set the interpreter as Python 3.9 which is what i have on my laptop.
File > Project > Python Interpreter > Python 3.9
Also read and applied all of the suggestions in this post: https://intellij-support.jetbrains.com/hc/en-us/community/posts/205808639-PyCharm-does-not-recognise-Python-standard-libraries?input_string=Pycharm%20does%20not%20recognise%20builtin%20functions
I repaired IDE, invalidate caches, unistalled and installed both Python and Pycharm.

The OP and Python version are below:
Windows 10 Enterprise
Python 3.9.6
Any help would be appreciated.
Thank you!
Please sign in to leave a comment.
Hi, is the issue project-specific? I wonder if it's reproduced in a new empty project.
No it is not project-specific, It has been like this from the beginnig of the installment. It is still the same in a new project.
It seems the file you're editing is not part of the project for some reason. Could you please show a screenshot of your project structure settings (https://www.jetbrains.com/help/pycharm/project-structure-dialog.html) ?
Could you please provide the affected project for analysis?
You can use uploading service at https://uploads.jetbrains.com/ , and provide upload ID in your reply.
Please zip the project folder along with ".idea" folder and upload it.
All of the projects that I work are affected by that problem. I uploaded a sample project.
Upload id: 2022_03_29_CX8bUUuCGLisxp79 (file: my-python-app.7z)
Thank you,
No problems with the project it seems.
Does the issue reproduce if you try the following:
- Add a new project interpreter
- Remove the `.idea` directory from the project root and restart PyCharm.
I have followed the steps but unfortunately it is still the same.
Could you please provide a screenshot of the interpreter settings and the expanded "External libraries" node from the project view?
It's quite strange that you have two "site-packages" directories in External Libraries, and the one marked as "library root" seems to be empty. Also, it's strange that the interpreter path in External Libraries is different from the interpreter path in the settings. It seems that the interpreter configuration is wrong for some reason.
Please try this:
1. Close PyCharm and remove "options/jdk.table.xml" file from the configuration directory (https://www.jetbrains.com/help/pycharm/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory)
2. Start PyCharm and add a new interpreter from scratch.
If it still doesn't work after that, please submit a bug report to https://youtrack.jetbrains.com/issues/py with Logs from **Help | Collect Logs and Diagnostic Data** collected after reproducing the issue, so we could investigate deeper.