PyCharm 无法识别 Python 文件 [英] PyCharm not recognizing Python files

查看:141
本文介绍了PyCharm 无法识别 Python 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PyCharm 不再识别 Python 文件.解释器路径设置正确.

PyCharm is no longer recognizing Python files. The interpreter path is correctly set.

推荐答案

请检查File |Settings(macOS 上的 Preferences) |编辑器 |文件类型,确保文本文件中未列出文件名或扩展名.

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

要解决此问题,请将其从 Text 文件中删除,并仔细检查 .py 扩展名是否与 Python 文件相关联.

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

这篇关于PyCharm 无法识别 Python 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆