PyCharm not recognizing Python files

Timothy Makobu picture Timothy Makobu · Jul 27, 2012 · Viewed 44.6k times · Source

My PyCharm is no longer recognizing python files (attached screenshot) The interpreter path is correctly set.

Screen shot

Answer

CrazyCoder picture CrazyCoder · Jul 27, 2012

Please check File | Settings (Preferences on macOS) | Editor | File Types, ensure that file name or extension is not listed in Text files.

To fix the problem remove it from the Text files and double check that .py extension is associated with Python files.

Text