小编use*_*138的帖子

pygame 安装:找不到 sdl-config 命令

我用了

./configure --prefix=$HOME
make
make install
Run Code Online (Sandbox Code Playgroud)

安装 sdl2,之后我尝试通过以下方式安装 pygame

cd ../pygame-1.9.1release/
python setup.py install
Run Code Online (Sandbox Code Playgroud)

但我收到一个错误:

linuxnx:~/python/library/pygame-1.9.1release> python setup.py install
WARNING, No "Setup" File Exists, Running "config.py"
Using UNIX configuration...
Hunting dependencies...
sh: sdl-config: command not found
WARNING: "sdl-config" failed!
sh: smpeg-config: command not found
WARNING: "smpeg-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
Run Code Online (Sandbox Code Playgroud)

python installation pygame

9
推荐指数
3
解决办法
3万
查看次数

标签 统计

installation ×1

pygame ×1

python ×1