无法在Windows 8.1 64位操作系统上安装Pygame_sdl2

时间:2015-12-29 08:56:40

标签: android python installer

我创建了一个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

在此背景下的任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

  1. 在此处下载您需要的版本https://bitbucket.org/marcusva/py-sdl2/downloads
  2. Exctract,打开cmd并导航到该文件夹​​。
  3. 运行python setup.py install
  4. 以这种方式为我工作。我下载了PySDL2-0.9.3.zip文件