Skip to content

ERROR: Failed to build 'pyyaml' when getting requirements to build wheel #643

@RigelFernandes

Description

@RigelFernandes

Hello there!

Anyone else had this problem when trying to install mediapipe-model-maker (first cell)

!python --version
!pip install --upgrade pip
!pip install mediapipe-model-maker

The output:

Python 3.12.12
Requirement already satisfied: pip in /usr/local/lib/python3.12/dist-packages (24.1.2)
Collecting pip
Downloading pip-25.3-py3-none-any.whl.metadata (4.7 kB)
Downloading pip-25.3-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 31.6 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 24.1.2
Uninstalling pip-24.1.2:
Successfully uninstalled pip-24.1.2
Successfully installed pip-25.3
Collecting mediapipe-model-maker
Downloading mediapipe_model_maker-0.2.1.4-py3-none-any.whl.metadata (1.7 kB)
Requirement already satisfied: absl-py in /usr/local/lib/python3.12/dist-packages (from mediapipe-model-maker) (1.4.0)
Collecting mediapipe>=0.10.0 (from mediapipe-model-maker)
Downloading mediapipe-0.10.21-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.7 kB)
Requirement already satisfied: numpy in /usr/local/lib/python3.12/dist-packages (from mediapipe-model-maker) (2.0.2)
Requirement already satisfied: opencv-python in /usr/local/lib/python3.12/dist-packages (from mediapipe-model-maker) (4.12.0.88)
INFO: pip is looking at multiple versions of mediapipe-model-maker to determine which version is compatible with other requirements. This could take a while.
Collecting mediapipe-model-maker
Downloading mediapipe_model_maker-0.2.1.3-py3-none-any.whl.metadata (1.6 kB)
Requirement already satisfied: tensorflow>=2.10 in /usr/local/lib/python3.12/dist-packages (from mediapipe-model-maker) (2.19.0)
Downloading mediapipe_model_maker-0.2.1.2-py3-none-any.whl.metadata (1.6 kB)
Downloading mediapipe_model_maker-0.2.1.1-py3-none-any.whl.metadata (1.6 kB)
Downloading mediapipe_model_maker-0.2.1-py3-none-any.whl.metadata (1.6 kB)
Downloading mediapipe_model_maker-0.2.0-py3-none-any.whl.metadata (1.5 kB)
Requirement already satisfied: tensorflow-datasets in /usr/local/lib/python3.12/dist-packages (from mediapipe-model-maker) (4.9.9)
Requirement already sERROR: Failed to build 'pyyaml' when getting requirements to build wheelatisfied: tensorflow-hub in /usr/local/lib/python3.12/dist-packages (from mediapipe-model-maker) (0.16.1)
Collecting tf-models-official==2.11.6 (from mediapipe-model-maker)
Downloading tf_models_official-2.11.6-py2.py3-none-any.whl.metadata (1.5 kB)
Requirement already satisfied: Cython in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (3.0.12)
Requirement already satisfied: Pillow in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (11.3.0)
Requirement already satisfied: gin-config in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (0.5.0)
Requirement already satisfied: google-api-python-client>=1.6.7 in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (2.187.0)
Requirement already satisfied: immutabledict in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (4.2.2)
Requirement already satisfied: kaggle>=1.3.9 in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (1.7.4.5)
Requirement already satisfied: matplotlib in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (3.10.0)
Requirement already satisfied: oauth2client in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (4.1.3)
Requirement already satisfied: opencv-python-headless in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (4.12.0.88)
Requirement already satisfied: pandas>=0.22.0 in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (2.2.2)
Requirement already satisfied: psutil>=5.4.3 in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (5.9.5)
Requirement already satisfied: py-cpuinfo>=3.3.0 in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (9.0.0)
Requirement already satisfied: pycocotools in /usr/local/lib/python3.12/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (2.0.10)
Collecting pyyaml<6.0,>=5.1 (from tf-models-official==2.11.6->mediapipe-model-maker)
Downloading PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies ... done
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> No available output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Getting requirements to build wheel ... error
ERROR: Failed to build 'pyyaml' when getting requirements to build wheel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions