Where can I find and install the dependencies for pygame?

后端 未结 8 656
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-05 13:35

I am relatively new to linux and am trying to install the pygame dev environment for python. When I run the setup.py it says that I need to install the following dependencie

8条回答
  •  失恋的感觉
    2020-12-05 14:32

    this steps work for me on Ubuntu 16.04:

    $ 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 pip3 install pygame
    

提交回复
热议问题