Ubuntu中Kivy安装错误

2024-04-27 21:42:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我在ubuntu12.04上安装了python-dev、libglu-dev和libevent-dev包,但当我试图从sudo python安装kivy时设置.pyinstall会抛出以下错误。在

      Error compiling Cython file:
     -----------------------------------------------------------
   .    ..
          glDeleteFramebuffers(len(self.lr_fbo_fb), arr.data.as_uints)
         del self.lr_fbo_fb[:]
     if len(self.lr_fbo_rb):
         Logger.trace('Context: releasing %d renderbuffer fbos' % len(self.lr_fbo_fb))
         arr = self.lr_fbo_rb
         glDeleteRenderbuffers(len(self.lr_fbo_rb), arr.data.as_uints)
                                                           ^

^{pr2}$

如果有人能告诉我该怎么做,我会很高兴的。我什么都试过了。提前谢谢你。在


Tags: devselfdatafblenassudoarr
1条回答
网友
1楼 · 发布于 2024-04-27 21:42:47

你可以用PPA在ubuntu中安装kivy:

sudo add-apt-repository ppa:kivy-team/kivy
sudo apt-get update
sudo apt-get install python-kivy

PPA主页:https://launchpad.net/~kivy-team/+archive/kivy

正如PPA说明部分所述,这是您失败的原因:

NOTICE: We may have Cython packages uploaded here, but don't give any guarantee that these are working! We just have them hosted there because of build problems with Cython older than 0.18.0.

相关问题 更多 >