[Python] Numpy 2.0.2 installation fails on Raspberry pi 4B running OSMC, Python 3.9.2

Discussão em 'Python' iniciado por Stack, Fevereiro 12, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to install numpy 2.0.2 on a Raspberry pi 4B running OSMC and Python 3.9.2.
    pip tries to compile numpy locally, and fails. I can't get past this error, and I also failed upgrading Python (hoping a newer Python and numpy will circumvent the issue).
    Any suggestions?

    Error message:

    Run-time dependency python found: NO (tried pkgconfig, pkgconfig and sysconfig)
    ../meson.build:41:12: ERROR: Python dependency not found


    Full log in pastebin

    The installation folder that's supposed to contain the meson build log (/tmp/pip-install-ph6xune8) doesn't exist:

    cd /tmp/pip-install-ph6xune8/ -bash:
    cd: /tmp/pip-install-ph6xune8/: No such file or directory


    Setup details:
    HW:
    Raspberry Pi 4 Model B Rev 1.4
    OS:

    PRETTY_NAME="Open Source Media Center"
    NAME="OSMC"
    VERSION="October 2024"
    VERSION_ID="2024.10-1"


    Python:
    Python 3.9.2
    pip 25.0.1
    Running in a virtual environment

    Things I tried:
    Updating tools: pip, setuptools, wheel
    Updating compilers and dependencies: cc, gcc, software-properties-common, build-essential, pkg-config
    Upgrading python so I get a newer version of numpy (failed... apt doesn't accept deadsnakes repo due to security issues, building from source also failed)

    Continue reading...

Compartilhe esta Página