我创建了一个pygame应用程序。现在我想创建一个APK,为此我需要安装pygame_sdl2。但是,当我尝试通过运行python setup.py install来安装时,我收到此错误
Traceback (most recent call last):
File "C:\pygame_sdl2-master\setup.py", line 36, in <module>
parse_cflags([ "sh", "-c", "sdl2-config --cflags" ])
File "C:\pygame_sdl2-master\setuplib.py", line 93, in parse_cflags
output = subprocess.check_output(command, universal_newlines=True)
File "C:\Python27\lib\subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "C:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
在此背景下的任何帮助将不胜感激。
答案 0 :(得分:0)
以这种方式为我工作。我下载了PySDL2-0.9.3.zip文件