我想编译它,完美地工作,使用buildozer编程:
import webbrowser
from kivy.app import App
class FAN(App):
def build(self):
webbrowser.open_new_tab('http://www.freies-aktivisten-netzwerk.de/wordpress/')
if __name__ == '__main__':
FAN().run()
FAN().stop()`
尽管我在Buildozer中编写了这些要求,但它没有用,我收到了这个错误:
Downloading/unpacking random
Could not find any downloads that satisfy the requirement random
Cleaning up...
No distributions at all found for random
Storing debug log for failure in /home/gilgamesch/.pip/pip.log
.# Command failed: pip install --download-cache=/home/gilgamesch/.buildozer/cache --target=/home/gilgamesch/games/.buildozer/applibs random
答案 0 :(得分:1)
random和webbrowser是内置模块,您不应将它们包含在需求行中。此行仅适用于将使用pip安装的外部事物,或者内部/外部事物以及其编译组件的特殊配方。