Windows 10计算机。 安装了python版本2。3.6.5和3.5。同时安装和移除了3.4。 因为这是我的第一步,也许我把所有这些装置都搞乱了。在
第一个基本的kivy应用程序。在
import kivy
kivy.require('1.10.0')
from kivy.app import App
from kivy.uix.button import Label
class HelloKivy(App):
def build(self):
return Label(text='Hi')
hellowKivy = HelloKivy()
hellowKivy.run()
运行应用程序时出现以下错误:
^{pr2}$我用pcCharm。在
编辑:
pip和setuptools不是最新版本。有问题吗?在
我已经尝试升级为描述here
但是当我尝试pip --version
时,出现了一个错误
Fatal error in launcher: Unable to create process using '""c:\program files (x86)\microsoft visual studio\shared\python36_64\python.exe" "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Scripts\pip.exe" --version'
不知道是什么意思。在
正如eyllanesc所暗示的那样,项目本地解释程序缺少一些包(可能这个术语是错误的)。 通过pyCharm文件|设置|项目解释器安装包,解决了这个问题。 必须安装kivi依赖(sdl2,glew)以及枕头。在
相关问题 更多 >
编程相关推荐