简体   繁体   English

无法在 PyCharm 上运行 python 文件

[英]Cannot run python file on PyCharm

I tried to run a Python File with Kivy and console always show me this message:我尝试使用 Kivy 运行 Python 文件,控制台总是向我显示此消息:

> C:\Users\mikae\AppData\Local\Programs\Python\Python38-32\python.exe:
> can't find '__main__' module in 'C:/Users/mikae'

My code is this line that i tried to compile:我的代码是我试图编译的这一行:

import kivy

I tried to run a Python File with Kivy and console always show me this message:我尝试使用 Kivy 运行 Python 文件,控制台总是向我显示此消息:

> C:\Users\mikae\AppData\Local\Programs\Python\Python38-32\python.exe:
> can't find '__main__' module in 'C:/Users/mikae'

My code is this line that i tried to compile:我的代码是我试图编译的这一行:

import kivy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM