Error while installing dependencies mediapipe and python

Error

Using uv pip install.

Using Python 3.13.3 environment at /home/adminuser/venv

× No solution found when resolving dependencies:

╰─▶ Because mediapipe==0.10.9 has no wheels with a matching Python ABI

  tag and you require mediapipe==0.10.9, we can conclude that your

  requirements are unsatisfiable.

Checking if Streamlit is installed

Installing rich for an improved exception logging

Using uv pip install.

Using Python 3.13.3 environment at /home/adminuser/venv

Resolved 4 packages in 153ms

Prepared 4 packages in 134ms

Installed 4 packages in 19ms

  • markdown-it-py==3.0.0

  • mdurl==0.1.2[2025-06-07 12:46:17.627161]

  • pygments==2.19.1

  • rich==14.0.0

────────────────────────────────────────────────────────────────────────────────────────

──────────────────────────────────────── pip ───────────────────────────────────────────

Using standard pip install.

Collecting streamlit (from -r /mount/src/dogtensionpredictor/requirements.txt (line 1))

Downloading streamlit-1.45.1-py3-none-any.whl.metadata (8.9 kB)

Collecting opencv-python (from -r /mount/src/dogtensionpredictor/requirements.txt (line 2))

Downloading opencv_python-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB)

ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5

ERROR: Could not find a version that satisfies the requirement mediapipe==0.10.9 (from versions: none)

ERROR: No matching distribution found for mediapipe==0.10.9

[notice] A new release of pip is available: 24.0 → 25.1.1

[notice] To update, run: pip install --upgrade pip

Checking if Streamlit is installed

Installing rich for an improved exception logging

Using standard pip install.

Collecting rich>=10.14.0

Downloading rich-14.0.0-py3-none-any.whl.metadata (18 kB)

Collecting markdown-it-py>=2.2.0 (from rich>=10.14.0)

Downloading markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)

Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.14.0)

Downloading pygments-2.19.1-py3-none-any.whl.metadata (2.5 kB)

Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.14.0)

Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)

Downloading rich-14.0.0-py3-none-any.whl (243 kB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 243.2/243.2 kB 11.8 MB/s eta 0:00:00[2025-06-07 12:46:21.567242]

Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 kB 75.4 MB/s eta 0:00:00[2025-06-07 12:46:21.587504]

Downloading pygments-2.19.1-py3-none-any.whl (1.2 MB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 64.9 MB/s eta 0:00:00[2025-06-07 12:46:21.628819]

Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)

Installing collected packages: pygments, mdurl, markdown-it-py, rich

Attempting uninstall: pygments

Found existing installation: Pygments 2.19.1

Uninstalling Pygments-2.19.1:

  Successfully uninstalled Pygments-2.19.1

Attempting uninstall: mdurl

Found existing installation: mdurl 0.1.2

Uninstalling mdurl-0.1.2:

  Successfully uninstalled mdurl-0.1.2

Attempting uninstall: markdown-it-py

Found existing installation: markdown-it-py 3.0.0

Uninstalling markdown-it-py-3.0.0:

  Successfully uninstalled markdown-it-py-3.0.0

Attempting uninstall: rich

Found existing installation: rich 14.0.0

Uninstalling rich-14.0.0:

  Successfully uninstalled rich-14.0.0

Successfully installed markdown-it-py-3.0.0 mdurl-0.1.2 pygments-2.19.1 rich-14.0.0

[notice] A new release of pip is available: 24.0 → 25.1.1

[notice] To update, run: pip install --upgrade pip

────────────────────────────────────────────────────────────────────────────────────────

[12:46:24] :red_exclamation_mark: installer returned a non-zero exit code

[12:46:24] :red_exclamation_mark: Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

requirements.txt

streamlit

opencv-python

mediapipe==0.10.9

pandas

scikit-learn

numpy

runtime.txt

python-3.10.9

imports

import streamlit as st

import os

import cv2

import pandas as pd

import tempfile

from collections import Counter

import mediapipe as mp

import pickle

Please help me solve it

Use an older python or a more recent mediapipe.

Worked!! Thank you.