Showing results for 
Search instead for 
Did you mean: 

Install Python Packaces STM32MP1


First of all i am new at embedded linux so i will be very pleased if you explain things like i am 5 years old.

I have a python program working on my main PC uses openai-whisper ( Whisper Github  ) . I want to run it on my STM32MP157c-DK2 board. I installed the starter package without demo launcher on my board (extensible.tsv). I don't have a linux PC so i am trying to do eveything on terminal via USB. When i use

pip3 install git+

i got lots of errors: 

Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting numba
Using cached numba-0.58.1.tar.gz (2.6 MB)
Preparing metadata ( ... error
error: subprocess-exited-with-error

× python egg_info did not run successfully.
│ exit code: 1
╰─> [104 lines of output]
/usr/lib/python3.11/site-packages/setuptools/ _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
WARNING: The wheel package is not available.
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pip/_internal/cli/", line 160, in exc_logging_wrapper
status = run_func(*args)
File "/usr/lib/python3.11/site-packages/pip/_internal/cli/", line 247, in wrapper
return func(self, options, args)
File "/usr/lib/python3.11/site-packages/pip/_internal/commands/", line 170, in run
requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/", line 92, in resolve
result = self._result = resolver.resolve(
File "/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/", line 172, in _add_to_criteria
if not criterion.candidates:
File "/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/", line 151, in __bool__
return bool(self._sequence)
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/", line 155, in __bool__
return any(self)
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/", line 143, in <genexpr>
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/", line 47, in _iter_built
candidate = func()
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/", line 297, in __init__
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/", line 162, in __init__
self.dist = self._prepare()
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/", line 231, in _prepare
dist = self._prepare_distribution()
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "/usr/lib/python3.11/site-packages/pip/_internal/operations/", line 491, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "/usr/lib/python3.11/site-packages/pip/_internal/operations/", line 536, in _prepare_linked_requirement
local_file = unpack_url(
File "/usr/lib/python3.11/site-packages/pip/_internal/operations/", line 176, in unpack_url
unpack_file(file.path, location, file.content_type)
File "/usr/lib/python3.11/site-packages/pip/_internal/utils/", line 246, in unpack_file
untar_file(filename, location)
File "/usr/lib/python3.11/site-packages/pip/_internal/utils/", line 217, in untar_file
with open(path, "wb") as destfp:
OSError: [Errno 28] No space left on device
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/setuptools/", line 97, in _fetch_build_egg_no_warn
File "/usr/lib/python3.11/", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpc3cas0rh', '--quiet', 'numpy<1.27,>=1.11']' returned non-zero exit status 2.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-dokczoxm/numba_80267d59656c46869eae6c686cb2e942/", line 426, in <module>
File "/usr/lib/python3.11/site-packages/setuptools/", line 107, in setup
File "/usr/lib/python3.11/site-packages/setuptools/", line 80, in _install_setup_requires
File "/usr/lib/python3.11/site-packages/setuptools/", line 85, in _fetch_build_eggs
File "/usr/lib/python3.11/site-packages/setuptools/", line 894, in fetch_build_eggs
return _fetch_build_eggs(self, requires)
File "/usr/lib/python3.11/site-packages/setuptools/", line 39, in _fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/usr/lib/python3.11/site-packages/pkg_resources/", line 827, in resolve
dist = self._resolve_dist(
File "/usr/lib/python3.11/site-packages/pkg_resources/", line 863, in _resolve_dist
dist = best[req.key] = env.best_match(
File "/usr/lib/python3.11/site-packages/pkg_resources/", line 1133, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3.11/site-packages/pkg_resources/", line 1145, in obtain
return installer(requirement)
File "/usr/lib/python3.11/site-packages/setuptools/", line 99, in _fetch_build_egg_no_warn
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpc3cas0rh', '--quiet', 'numpy<1.27,>=1.11']' returned non-zero exit status 2.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I far as i could find, PyTorch -which whisper rely on- does not support armhf architecture so i couldn't find any wheel files. What should i do in this situation?

And would X-Cube-AI help me about this?

Virtual Machine or Dual Boot Ubuntu options are hard for me but i can find a way if it's the only way.