简体   繁体   English

升级Colorama的buildozer版本

[英]Upgrading version of colorama for buildozer

I have a big problem. 我有一个大问题。 I am trying to use buildozer to package my application for android that I have written using kivy in Python 2. I have installed all dependencies, and I fell upon an error, stating: 我正在尝试使用buildozer打包我在Python 2中使用kivy编写的android应用程序。我已经安装了所有依赖项,但遇到错误,并指出:

ERROR: colorama version is 0.3.2, but python-for-android needs at least 0.3.3.

So I ran: 所以我跑了:

 pip install colorama --upgrade to upgrade it. 

It finishes, but it also states that 它完成了,但同时也指出

Not uninstalling colorama at /usr/lib/python2.7/dist-packages, owned by OS

I thought it worked, but it turns out that the colorama at /usr/lib/python2.7/dist-packages is the one python sees first, and buildozer still doesn't work. 我以为它可以用,但事实证明/usr/lib/python2.7/dist-packages中的colorama是python首先看到的一个,而buildozer仍然不起作用。

The problem is, for some reason, colorama seems to be at it's latest version when I type aptitude upgrade colorama , and pip needs colorama, so if I uninstall colorama, aptitude tells me I have to uninstall pip. 问题是由于某种原因,当我键入aptitude upgrade colorama时,colorama似乎是最新版本,并且pip需要colorama,因此,如果我卸载colorama,aptitude会告诉我必须卸载pip。 pip just happens to be a dependancy of buildozer as well. 点子恰好也是buildozer的依赖项。

Update: I ran this all as root, previously stating su, exept for the buildozer commands. 更新:我以root身份运行了这一切,之前曾说过su,是buildozer命令的代表。

It's a permission error. 这是一个权限错误。 Try running 尝试跑步

sudo pip install colorama --upgrade

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

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