无法在Raspberry Pi上安装snips-nlu:找不到Rust编译器

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

我跟随these instructions在Raspberry Pi上安装snips-nlu:

  1. Rust安装:curl https://sh.rustup.rs -sSf | sh
  2. Setuptools-rust:sudo python3 -m pip install setuptools-rust
  3. NLU安装:sudo python3 -m pip install snips-nlu

我的控制台日志:

Building wheels for collected packages: snips-nlu-utils, snips-nlu-parsers
.
.
.  error: Can not find Rust compiler

我尝试使用不同的Python版本。

我找到了setuptools-rust,但是没有帮助,因为我不知道该怎么办。

如何修复此Rust编译器错误消息并在Raspberry Pi上安装snips-nlu?

python-3.x rust setuptools snips
1个回答
0
投票

安装Rust编译器后:

curl https://sh.rustup.rs -sSf | sh

您可以尝试重新启动,然后继续安装NLU。重新启动是为了确保Rust的路径已记录在PATH中。

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