Raspberry Pi: Installing Python

preview_player
Показать описание
Need steps to install Python on the Raspberry Pi? In this tutorial, I show you how to get any version of Python installed on your Raspberry Pi by downloading Python and building the Python package on your Pi!

=== Commands Used ===
* Update package list: sudo apt-get update
* Install build tools: sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libc6-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev
* Build Python package: ./configure
* Build Python from package: make -j 4
* Install Python from built package: sudo make altinstall
* Upgrade SetupTools: sudo python3.8 -m pip install --upgrade setuptools (substitute 3.8.1 with your version)
* Delete unzipped Python archive folder: sudo rm -r Python-3.8.1

=== URLs Used ===

#raspberrypi #raspberrypi5 #raspberrypiprojects #raspberrypi4
Рекомендации по теме
Комментарии
Автор

Some of the tests like "test_datetime" failed after compiling. To fix this you can run "export LC_ALL=C" before compiling. This locale is the default setting for character encoding and behavior, often used to ensure predictable output for things like sorting, file system operations, and language-specific behaviors. Setting it to C effectively disables localization and forces the system to use English (ASCII) and avoid any specific locale settings that might be defined for your environment (e.g., different date formats or character sets).

chrisg
Автор

Is this version 3.8.1 supports face-recognition module in python?

CapuXino