是否存在适用于Windows的Kivy 1.9.x(预)版本?(Does a Kivy 1.9.x (pre)release exists for Windows?)

编程入门 行业动态 更新时间:2024-10-28 02:31:58
是否存在适用于Windows的Kivy 1.9.x(预)版本?(Does a Kivy 1.9.x (pre)release exists for Windows?)

HEJ,

对于Linux使用git和构建自己的kivy版本是一种使用1.9.x版本的简单方法。

在Windows上做这件事似乎变得更加困难,因为你必须以适当的方式设置你的环境。

Christoph Golke运行了一个很好的网站,其中包含许多python库的构建( www.lfd.uci.edu/~gohlke/pythonlibs )。 他使用PyPi,当然只有主要版本( https://pypi.python.org/pypi/Kivy )。

那么是否有其他网站等Windows用户可以预先为Windows构建一个kivy 1.9.x?

Hej,

For Linux useing git and building your own kivy version is an easy way to use the 1.9.x version.

Doing it on windows seems mutch more dificult, because you have to setup your enviroment in a proper way.

Christoph Golke runs a nice website containing builds of many python libs(www.lfd.uci.edu/~gohlke/pythonlibs). He uses PyPi and of course there are only the main releases(https://pypi.python.org/pypi/Kivy).

So is there an other website etc. where a Windows user can get prebuild a kivy 1.9.x for windows?

最满意答案

我们不提供任何预发布的Windows软件包。 更新1.8.0软件包以使用最新的Kivy相当容易 - 但是,虽然这将为您提供更新的Kivy代码,但它不具备1.9.0的所有功能。 我们默认使用SDL2而不是Pygame,你需要SDL2 libs / headers来编译它。

但是,我们也非常接近发布1.9.0,因此我们应该尽快使用最新的代码和SDL2支持新的Windows软件包。

但如果你现在真的想要最新的代码,你可以更新它。 请记住,它不会支持SDL2。

转到可移植包目录 将kivy文件夹重命名为kivy.stable 将开发源放在新的kivy文件夹中 如果你有git,你可以简单地运行git clone https://github.com/kivy/kivy.git 否则, 下载源zip文件 ,解压缩并将生成的文件夹从kivy-<some hash>重命名为kivy 使用kivy.bat打开shell / cmd窗口 键入python -m pip install --upgrade Cython==0.21.2更新Cython python -m pip install --upgrade Cython==0.21.2 cd到kivy文件夹并输入make force

而且你已经完成了!

We do not provide any prerelease Windows packages. It's fairly easy to update the 1.8.0 package to use the newest Kivy - however, while this will get you the updated Kivy code, it will not have all the features of 1.9.0. We have switched to using SDL2 instead of Pygame by default, and you need the SDL2 libs/headers to compile it.

However, we are also very close to releasing 1.9.0, so we should have a new Windows package soon with the latest code and SDL2 support.

But if you really want the newest code now, you can update it. Just remember that it won't have SDL2 support.

Go to the portable package directory Rename the kivy folder to kivy.stable Put the development source in a new kivy folder If you have git, you can simply run git clone https://github.com/kivy/kivy.git Otherwise, download the source zip, extract, and rename the resulting folder from kivy-<some hash> to kivy Open a shell/cmd window with kivy.bat Update Cython by typing python -m pip install --upgrade Cython==0.21.2 cd to the kivy folder and type make force

And you're done!

更多推荐

python,Windows,kivy,电脑培训,计算机培训,IT培训"/> <meta name="descripti

本文发布于:2023-08-05 16:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1436024.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:适用于   是否存在   版本   Windows   Kivy

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!