lohasage.blogg.se

Thonny raspberry pi pygame
Thonny raspberry pi pygame















Thonny raspberry pi pygame install#

In this list you can select the package (here: python-pygame) and run sudo apt-get install the-package-name.įor more debugging of dependencies see Installing pygame with pip. Solarwolf - Collect the boxes and don't become mad Python-soya-doc - high level 3D engine for Python Python-soya-dbg - high level 3D engine for Python - debug extension Python-soya - high level 3D engine for Python Python-pyglet - cross-platform windowing and multimedia library import RPi.GPIO as GPIO Import Raspberry Pi GPIO library. To initialize the GPIO ports on the Raspberry Pi we need to first import the Python library, the initialize the library and setup pin 8 as an output pin. Turn the LED on and off in 1 second intervals. Python-pygame - SDL bindings for games development in Python Our script needs to do the following: Initialize the GPIO ports. Pyntor - flexible and componentized presentation program Psychopy - environment for creating psychology stimuli in Python The output for apt-cache search pygame is lightyears - single player real-time strategy game with steampunk sci-fi Then you can see the packages (if they are in the repositories) and their names.

thonny raspberry pi pygame

You are using a module every time you use an import statement in your. Most packages are made available on the Python Package Index (PyPI). Modules are created and made publicly available by organisations, teams, or individuals. Next time if you want to install a python package you can search whether it is in the repositories by running: apt-cache search pygame A Python package is a container for a module or collection of modules that allow your program to do predefined things. Installation progress will be shown in the terminal. Click on the name of the package in the search results. I can confirm Jobin's suggestion in his comment: sudo apt-get install python-pygame Search for the name of the package you wish to install, e.g.















Thonny raspberry pi pygame