你是如何安装它的?我有工作在这里的virtualenv中
[email protected]:/tmp> virtualenv -p python3.6 .testvenv
Running virtualenv with interpreter /usr/bin/python3.6
Using base prefix '/usr'
New python executable in /tmp/.testvenv/bin/python3.6
Also creating executable in /tmp/.testvenv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
(无视这样的事实,我使用activate.fish,因为我用鱼贝,使用正确的激活你的shell)
[email protected]:/tmp> . .testvenv/bin/activate.fish
安装用Cython
(.testvenv) 11:46:29 02/09/17 1,47.testvenv 0
[email protected]:/tmp> pip install cython
Collecting cython
Using cached Cython-0.26.1-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: cython
Successfully installed cython-0.26.1
终于安装kivy
[email protected]:/tmp> pip install kivy
Collecting kivy
Using cached Kivy-1.10.0.tar.gz
Collecting Kivy-Garden>=0.1.4 (from kivy)
Collecting docutils (from kivy)
Using cached docutils-0.14-py3-none-any.whl
Collecting pygments (from kivy)
Using cached Pygments-2.2.0-py2.py3-none-any.whl
Collecting requests (from Kivy-Garden>=0.1.4->kivy)
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached certifi-2017.7.27.1-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached idna-2.6-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached chardet-3.0.4-py2.py3-none-any.whl
Building wheels for collected packages: kivy
Running setup.py bdist_wheel for kivy ... done
Stored in directory: /home/gabriel/.cache/pip/wheels/44/dc/e1/8f36be467f9d8c3b27d172a64a55b887212b86727684ca18e8
Successfully built kivy
Installing collected packages: urllib3, certifi, idna, chardet, requests, Kivy-Garden, docutils, pygments, kivy
Successfully installed Kivy-Garden-0.1.4 certifi-2017.7.27.1 chardet-3.0.4 docutils-0.14 idna-2.6 kivy-1.10.0 pygments-2.2.0 requests-2.18.4 urllib3-1.22
测试它
[email protected]:/tmp> python
Python 3.6.1 (default, Mar 22 2017, 06:17:05)
[GCC 6.3.0 20170321] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kivy
[INFO ] [Logger ] Record log in /home/gabriel/.kivy/logs/kivy_17-09-02_1.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.6.1 (default, Mar 22 2017, 06:17:05)
[GCC 6.3.0 20170321]
>>>
嗨,你可以看看我刚刚发布的答案吗?在你的回答中,我看到你已经使用了Cython == 0.26.1。我尝试了0.27,但失败了,所以我按照Kivy安装页面中的建议回滚到了0.25。你能否指点我如何检查Kivy是否可以用于更新版本的Cython?是否有一个脚本可以运行这样的测试,或者你能指导我如何做到这一点?我们需要它用于我们的产品,它也一定会帮助Kivy社区。谢谢 – yoel
我不认为我们有新的cython发行版的系统测试,他们倾向于破坏东西(毕竟,它仍然不是1.0 ...),所以我们不得不修补东西并不罕见。在新的Kivy提交*和*新的Cython版本中引入一些CI可能会很好,以了解这些问题。不知道在哪里做的最好,也许你可以在freenode上通过#kivy-dev来讨论它? – Tshirtman