• centos上安装pygame


    安装前依赖包检查及安装

    python-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL-devel numpy subversion portmidi-devel libsmpeg-devel
    -------------------
    #yum install python-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL-devel numpy subversion portmidi-devel -y
    @安装libsmpeg-devel

        Create the repository config file /etc/yum.repos.d/linuxtech.repo:

        [linuxtech]
        name=LinuxTECH
        baseurl=http://pkgrepo.linuxtech.net/el6/release/
        enabled=1
        gpgcheck=1
        gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET

        Install libsmpeg-devel rpm package:

        # yum install libsmpeg-devel
    安装pygame
    ------------------
    #wget http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz
    #tar xvf pygame-1.9.1release.tar.gz
    #cd pygame-1.9.1release

    #python config.py

    SDL     : found 1.2.14
    FONT    : found
    IMAGE   : found
    MIXER   : found
    SMPEG   : found 0.4.5
    PNG     : found
    JPEG    : found
    SCRAP   : found
    PORTMIDI: found
    PORTTIME: not found (忽略)

    显示以上信息,并且相关软件包都能found到,即可继续安装pygame
    #python setup.py build
    #python setup.py install


    参考:http://pygame.org/wiki/CompileRedHat

  • 相关阅读:
    c++ 小记
    扁平化设计
    json 学习
    c#多线程下载
    php 序列化储存和转化 json_encode() json_decode($q,true)
    支付接口
    JSON.stringify 语法实例讲解 字符串
    jquery 单选框整个选中
    js戳和php戳时间换算
    windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 解决方案
  • 原文地址:https://www.cnblogs.com/su-han/p/5581338.html
Copyright © 2020-2023  润新知