For example, a Python library can help with mathematics functions, interaction with an API, or a specific accessory. Find Python packages on Raspberry PiĪ Python package is created to have reusable code at hand in any project. The most common Python libraries will be available in the repositories, often named something like “python3-library”. The easiest way to install new Python packages is to use APT (or the graphical version of it: “Add/Remove Software”). If like me, you always mix the languages syntax, download my cheat sheet for Python here! Raspberry Pi without Python is like a car without an engine, you miss all the fun parts. It will guide you step-by-step to learn the essential concepts (and only the essential concepts) required to achieve any project in the future. #Raspbian thonny how toI’ll start with APT because most modules can be installed with it, then I’ll introduce PIP and will conclude with a few tips on how to manage your Python libraries.īy the way, if you get overwhelmed as soon as Python is required for a project, I recommend checking out my e-book “ Master Python on Raspberry Pi“. Another tool named “PIP” can also be used for some other modules not included in the default repositories.Įither way, I’ll explain everything in this article. Searching for the library name with this tool will be the fastest way to install them. Most of the Python packages for Raspberry Pi are available in the APT repositories. Even if you are good with Python, you might need some help knowing how to install new packages for Python on Raspberry Pi, which is exactly why I wrote this article. Python is already installed on Raspberry Pi, but using it to create scripts and build various projects will often require some dependencies named libraries or modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |