Hey all,
I want to run Ollama and LLMs on my Pi5 and access them via web interface. Followed this guide: https://github.com/adijayainc/LLM-ollam ... pberry-Pi5
only to hit a wall when trying to install docker-compose.
typing this:
will give me this:
I read on few places that installing anyway with "--break-system-packages" will solve the problem. But in my case it didn't. Now I get this message:
How can I solve this problem?
Thanks in advance.
I want to run Ollama and LLMs on my Pi5 and access them via web interface. Followed this guide: https://github.com/adijayainc/LLM-ollam ... pberry-Pi5
only to hit a wall when trying to install docker-compose.
typing this:
Code:
sudo pip3 install docker-composeCode:
error: externally-managed-environment× This environment is externally managed╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. For more information visit http://rptl.io/venvnote: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.hint: See PEP 668 for the detailed specification.Code:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simpleCollecting docker-compose Downloading https://www.piwheels.org/simple/docker-compose/docker_compose-1.29.2-py2.py3-none-any.whl (114 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.8/114.8 kB 639.1 kB/s eta 0:00:00Collecting PyYAML<6,>=3.10 Downloading PyYAML-5.4.1.tar.gz (175 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 1.4 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [67 lines of output] /tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info writing lib3/PyYAML.egg-info/PKG-INFO writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt writing top-level names to lib3/PyYAML.egg-info/top_level.txt Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 271, in <module> File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/__init__.py", line 117, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 186, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 202, in run_commands dist.run_commands() File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 1002, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 1106, in run_command super().run_command(command) File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 312, in run self.find_sources() File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 320, in find_sources mm.run() File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 543, in run self.add_defaults() File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 581, in add_defaults sdist.add_defaults(self) File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/command/sdist.py", line 109, in add_defaults super().add_defaults() File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 245, in add_defaults self._add_defaults_ext() File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 330, in _add_defaults_ext self.filelist.extend(build_ext.get_source_files()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 201, in get_source_files File "/tmp/pip-build-env-i78p00eb/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 131, in __getattr__ raise AttributeError(attr) AttributeError: cython_sources [end of output] note: This error originates from a subprocess, and is likely not a problem with pip.error: subprocess-exited-with-error× Getting requirements to build wheel did not run successfully.│ exit code: 1╰─> See above for output.note: This error originates from a subprocess, and is likely not a problem with pip.Thanks in advance.
Statistics: Posted by nautilus27 — Fri May 09, 2025 5:19 pm







