pygame installation: sdl-config command not found

后端 未结 6 1186
栀梦
栀梦 2020-12-03 12:15

I used

./configure --prefix=$HOME
make
make install

to install sdl2, after which I tried to ins

6条回答
  •  离开以前
    2020-12-03 12:54

    I searched a long time, cause I needed the package for Python Crash Course by Eric Matthes, but couldn't find the answer that would help running pip install pygame without errors and finally found 1 line solution that worked for me

    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 libfreetype6-dev
    

提交回复
热议问题