Задать вопрос
@RaiTer228

Pip install aiogram error, ошибка в термукс, что делать?

У меня проблема с установкой aiogram
В терминал termux

Вот логи:
$ pip install aiogram
Collecting aiogram
Using cached aiogram-3.6.0-py3-none-any.whl.metadata (7.2 kB)
Collecting aiofiles~=23.2.1 (from aiogram)
Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)
Collecting aiohttp~=3.9.0 (from aiogram)
Using cached aiohttp-3.9.5.tar.gz (7.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: certifi>=2023.7.22 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from aiogram) (2024.2.2)
Collecting magic-filter<1.1,>=1.0.12 (from aiogram)
Using cached magic_filter-1.0.12-py3-none-any.whl.metadata (1.5 kB)
Collecting pydantic<2.8,>=2.4.1 (from aiogram)
Using cached pydantic-2.7.1-py3-none-any.whl.metadata (107 kB)
Collecting typing-extensions<=5.0,>=4.7.0 (from aiogram)
Using cached typing_extensions-4.12.0-py3-none-any.whl.metadata (3.0 kB)
Collecting aiosignal>=1.1.2 (from aiohttp~=3.9.0->aiogram)
Using cached aiosignal-1.3.1-py3-none-any.whl.metadata (4.0 kB)
Collecting attrs>=17.3.0 (from aiohttp~=3.9.0->aiogram)
Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting frozenlist>=1.1.1 (from aiohttp~=3.9.0->aiogram)
Using cached frozenlist-1.4.1-py3-none-any.whl.metadata (12 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp~=3.9.0->aiogram)
Using cached multidict-6.0.5-py3-none-any.whl.metadata (4.2 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp~=3.9.0->aiogram)
Using cached yarl-1.9.4-py3-none-any.whl.metadata (31 kB)
Collecting annotated-types>=0.4.0 (from pydantic<2.8,>=2.4.1->aiogram)
Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.18.2 (from pydantic<2.8,>=2.4.1->aiogram)
Using cached pydantic_core-2.18.2.tar.gz (383 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [60 lines of output]
Collecting maturin<2,>=1
Using cached maturin-1.5.1.tar.gz (181 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting typing-extensions!=4.7.0,>=4.6.0
Using cached typing_extensions-4.12.0-py3-none-any.whl.metadata (3.0 kB)
Using cached typing_extensions-4.12.0-py3-none-any.whl (37 kB)
Building wheels for collected packages: maturin
Building wheel for maturin (pyproject.toml): started
Building wheel for maturin (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

× Building wheel for maturin (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [35 lines of output]
/data/data/com.termux/files/usr/tmp/pip-build-env-6iqymdlb/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:83: SetuptoolsWarning: install_requires overwritten in pyproject.toml (dependencies)
corresp(dist, value, root_dir)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-311
creating build/lib.linux-aarch64-cpython-311/maturin
copying maturin/init.py -> build/lib.linux-aarch64-cpython-311/maturin
copying maturin/main.py -> build/lib.linux-aarch64-cpython-311/maturin

copying maturin/import_hook.py -> build/lib.linux-aarch64-cpython-311/maturin
running egg_info
creating maturin.egg-info
writing maturin.egg-info/PKG-INFO
writing dependency_links to maturin.egg-info/dependency_links.txt
writing requirements to maturin.egg-info/requires.txt
writing top-level names to maturin.egg-info/top_level.txt
writing manifest file 'maturin.egg-info/SOURCES.txt'
reading manifest file 'maturin.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.json' under directory 'src/python_interpreter'
writing manifest file 'maturin.egg-info/SOURCES.txt'
running build_ext
running build_rust
error: can't find Rust compiler

If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

To update pip, run:

pip install --upgrade pip

and then retry package installation.

If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for maturin
Failed to build maturin
ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects
[end of output]

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

× pip subprocess to install build dependencies 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.

Pip у меня обновлен:
$ pip install --upgrade pip
ERROR: Installing pip is forbidden, this will break the python-pip package (termux).
$ pip install --upgrade python-pip
Requirement already satisfied: python-pip in /data/data/com.termux/files/usr/lib/python3.11/site-packages (1.1.1)

Версия термукс последняя, зеркало уже меняли, python версия последняя (python, python2, Python 3), я уже все перепробовал.

Цель конечная хостить бота телеграм.
  • Вопрос задан
  • 1102 просмотра
Подписаться 1 Простой 8 комментариев
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы