User Tools

Site Tools


programmering:python

Tilbage til Programmering


Python

Installation af Pygame for python3 manualt.

(1) hg clone https://bitbucket.org/pygame/pygame
(2) cd pygame
(3) python3 config.py
    NOTE:  This confirms that you have the dependencies.
(4) python3 setup.py build
(5) sudo python3 setup.py install
    NOTE:  On my machine, I have the distro's python3.2 installed (which is in
           the /usr/lib directory).  This step places the pygame module into
           /usr/local/lib -- which is what you want (per Sergey's suggestion).

TEST
(6) python3
(7) At the '>>>' prompt, type "import pygame"
    VALIDATION:  If you get another '>>>' prompt, all is well.
programmering/python.txt · Last modified: 2023/10/21 19:19 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki