Where can I find and install the dependencies for pygame?

后端 未结 8 654
爱一瞬间的悲伤
爱一瞬间的悲伤 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:31

    Mine is Fedora-20, and I found this worked:

    sudo yum install python-opengl
    sudo yum install python-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL-devel smpeg-devel numpy subversion portmidi-devel 
    

    Downloaded the smpeg from the website:

    http://freecode.com/projects/smpeg

    and did a local install:

    sudo yum localinstall smpeg-0.4.5-2.1.x86_64.rpm 
    sudo yum install pygame pygame-devel
    
    0 讨论(0)
  • 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
    
    0 讨论(0)
提交回复
热议问题