我对 linux 比较陌生,正在尝试为 python 安装 pygame 开发环境。当我运行 setup.py 时,它说我需要安装以下依赖项,其中一个是我找到并安装的 (SDL)。然而,其他的则更加难以捉摸。
Hunting dependencies...
sh: smpeg-config: command not found
WARNING: "smpeg-config" failed!
SDL : found 1.2.14
FONT : not found
IMAGE : not found
MIXER : not found
SMPEG : not found
PNG : not found
JPEG : not found
SCRAP : found
PORTMIDI: not found
PORTTIME: not found
如果您能给我一些指导,我将不胜感激。
谢谢。
最佳答案
$ sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi- dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
或稍微排序:
sudo apt-get install \
python-dev \
python-numpy \
subversion \
ffmpeg \
libsdl1.2-dev \
libsdl-image1.2-dev \
libsdl-mixer1.2-dev \
libsdl-ttf2.0-dev \
libavcodec-dev \
libavformat-dev \
libportmidi-dev \
libsmpeg-dev \
libswscale-dev \
关于python - 我在哪里可以找到并安装 pygame 的依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7652385/