User Manual Orange Pi Zero 3

  Features   |  Use   |    Linux     |  Linux SDK   |  Android   |  Android SRC   |

RU          EN  

Chapt 3. Instructions for use of Debian/Ubuntu Server and Xfce desktop system
Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122  


3.24.2. Install via python
Before installation, please replace the source of pip with a domestic source to speed up the installation of the Python package. For the configuration method, see the instructions in the section on Python to replace the pip source method.

  • 1) First install the dependency package

    orangepi@orangepi:~$ sudo apt-get update
    orangepi@orangepi:~$ sudo apt-get install -y python3 python3-dev python3-venv \
    python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential \
    libopenjp2-7 libtiff5 libturbojpeg0-dev tzdata

    If it is debian12, please use the following command

    orangepi@orangepi:~$ sudo apt-get update
    orangepi@orangepi:~$ sudo apt-get install -y python3 python3-dev python3-venv \
    python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential \
    libopenjp2-7 libturbojpeg0-dev tzdata

  • 2) Then you need to compile and install Python3.9. For the method, please refer to the section on how to compile and install Python source code

    The default Python version of Debian Bullseye is Python3.9, so there is no need to compile and install

    The default Python version of Ubuntu Jammy is Python3.10, so there is no need to compile and install

    The default Python version of Debian Bookworm is Python3.11, so there is no need to compile and install

  • 3) Then create a Python virtual environment

    Debian Bookworm is python3.11, please remember to replace the corresponding command

  • 4) Then install the required Python package

     (homeassistant) orangepi@orangepi:/srv/homeassistant$ python3 -m pip install wheel

  • 5) Then you can install Home Assistant Core

    (homeassistant) orangepi@orangepi:/srv/homeassistant$ pip3 install homeassistant

  • 6) Then enter the following command to run Home Assistant Core

    (homeassistant) orangepi@orangepi:/srv/homeassistant$ hass

  • 7) Then enter [IP address of the development board: 8123] in the browser to see the interface of Home Assistant

    When running the hass command for the first time, you will download and install and cache some necessary libraries and dependencies to run. This process may take a few minutes. Note that at this time, the interface of Home Assistant cannot be seen in the browser. Please wait for a while before refreshing



    Img 3.174

     <         > 


  • Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122