【发布时间】:2013-10-25 01:19:58
【问题描述】:
我用过
./configure --prefix=$HOME
make
make install
安装 sdl2, 之后我尝试通过
安装 pygamecd ../pygame-1.9.1release/
python setup.py install
但我收到一个错误:
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.
【问题讨论】:
-
如果您使用 pip 安装,则不必手动安装 SDL。
-
实际上不是这样。我从
pip3 install tensor2tensor遇到了这个错误。
标签: python installation pygame