简体   繁体   English

将Kivy的默认Python解释器从2.7更改为3.3

[英]Change default Python interpreter for Kivy from 2.7 to 3.3

I read that since Kivy 1.8 I can you Python 3.3 instead of 2.7 but although I have Python 3.3 installed the kivy command still uses 2.7 . 我读到,从Kivy 1.8开始,我可以用Python 3.3代替2.7,但是尽管我安装了Python 3.3,但是kivy命令仍然使用2.7

Can I manually modify kivy bash script and change the last line exec $(python -c "import os, sys; ... to point to my Python 3.3 installation? There's a similar question about Python 3.4 but this should not be supported right now. 我可以手动修改kivy bash脚本并更改最后一行exec $(python -c "import os, sys; ...指向我的Python 3.3安装吗? 关于Python 3.4也有类似的问题,但是现在不应该支持此问题

So, what's the recommended way? 那么,推荐的方法是什么?

The kivy packages for OSX use the default system Python: 2.7. OSX的奇异包使用默认系统Python:2.7。 All the dependencies we've compiled are based on the ABI of system Python 2.7. 我们编译的所有依赖项均基于系统Python 2.7的ABI。

Using another Python, or 3.3, will just not work. 使用另一个Python或3.3,将无法正常工作。 Python is great when you stay in pure python, but we are using lot of underlaying libraries, which requires compilation too. 当您使用纯python时,Python很棒,但是我们使用了许多底层库,它们也需要编译。 We'll try to release a 3.4 version somehow. 我们将尝试以某种方式发布3.4版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM