无法为安装基于 pyproject.toml 的项目所需的 maturin 构建轮子

问题描述 投票:0回答:1

/storage/emulated/0/Android/data/ru.iiec.pydroid3/files $ pip install maturin 收集成熟素 使用缓存的 maturin-1.2.3.tar.gz (175 kB) 安装构建依赖项...完成 获取制造轮子的要求...完成 准备元数据 (pyproject.toml) ...完成 已满足要求: /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages 中的 tomli>=1.1.0 (来自 maturin)(2.0.1) 为收集的包构建轮子:maturin maturin 的构建轮子(pyproject.toml)...错误 错误:子进程退出并出现错误

× maturin 的构建轮 (pyproject.toml) 未成功运行。 │ 退出代码:1 ╰─>【35行输出】 /data/data/ru.iiec.pydroid3/cache/pip-build-env-u0qptc17/overlay/lib/python3.9/site-packages/setuptools/config/_apply_pyprojecttoml.py:80:SetuptoolsWarning:

install_requires
覆盖
pyproject.toml
(依赖项) corresp(距离,值,root_dir) 运行 bdist_wheel 运行构建 运行build_py 创建构建 创建 build/lib.linux-aarch64-cpython-39 创建 build/lib.linux-aarch64-cpython-39/maturin 复制 maturin/init.py -> build/lib.linux-aarch64-cpython-39/maturin 复制 maturin/main.py -> build/lib.linux-aarch64-cpython-39/maturin 复制 maturin/import_hook.py -> build/lib.linux-aarch64-cpython-39/maturin 运行egg_info 创建 maturin.egg-info 编写 maturin.egg-info/PKG-INFO 将 dependency_links 写入 maturin.egg-info/dependency_links.txt 将需求写入 maturin.egg-info/requires.txt 将顶级名称写入 maturin.egg-info/top_level.txt 写入清单文件“maturin.egg-info/SOURCES.txt” 读取清单文件“maturin.egg-info/SOURCES.txt” 读取清单模板“MANIFEST.in” 警告:在目录“src/python_interpreter”下找不到与“*.json”匹配的文件 写入清单文件“maturin.egg-info/SOURCES.txt” 运行 build_ext 运行 build_rust 错误:找不到 Rust 编译器

  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]

注意:此错误源自子进程,并且可能不是 pip 的问题。 错误:maturin 构建轮失败 构建maturin失败 错误:无法为 maturin 构建轮子,这是安装基于 pyproject.toml 的项目所必需的

我尝试安装 jupyter 笔记本,但收到有关缺少 maturin 的错误。当我尝试安装它时,出现上述错误。

installation jupyter maturin
1个回答
0
投票

解决了吗?? 我也有同样的问题...

© www.soinside.com 2019 - 2024. All rights reserved.