[英]Cant get Kivy to work in Visual Studio Code
As stated above i cant seem to work with kivy while using Visual Studio Code.如上所述,在使用 Visual Studio Code 时,我似乎无法使用 kivy。 I can see that there are a few other posts like this one but im not sure if they are the same problem or not so until im notified that i need to move my post i wont.
我可以看到还有其他一些类似的帖子,但我不确定它们是否是同样的问题,直到我通知我需要移动我的帖子我不会。
So i am working through the book Creating Apps in Kivy Mobile with Python, I am at the very first example.因此,我正在使用 Python 在 Kivy Mobile 中创建应用程序一书,这是第一个示例。 i will post my code and the output from my terminal and hopefully someone can help.
我将从我的终端发布我的代码和 output,希望有人能提供帮助。
heres the code这是代码
first file main.py第一个文件 main.py
from kivy.app import App
class WeatherApp(App):
pass
if __name__ == '__main__':
WeatherApp().run()
and here is the Kivy file: weather.kv这是 Kivy 文件:weather.kv
Label:
text: "Hello World"
and lastly here is my output from the terminal最后是我的 output 从终端
$ /Users/fau57/.pyenv/versions/3.9.2/bin/python "/Users/fau57/Documents/Development/Python/Kivy/Creating Apps in Kivy/Practice Code/main.py"
Traceback (most recent call last):
File "/Users/fau57/Documents/Development/Python/Kivy/Creating Apps in Kivy/Practice Code/main.py", line 1, in <module>
from kivy.app import App
ModuleNotFoundError: No module named 'kivy'
Some things you might check...有些事情你可能会检查...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.