- Ansible runs on Python and Python runs on various systems including newer RISC-V machines.
- It has many dependencies and issues with dependencies are common (dependency hell). Installing Ansible from PyPI on RISC-V systems using
pip install ansible
has been unsuccessful for months. - The
cryptography
library requires a Rust compiler to build if not prebuilt. Installing Ansible withpip install ansible
leads to errors like "can't find Rust compiler" and other related issues. - user @mediocreDevops provided a solution detailed in a GitHub Gist (https://gist.github.com/afro-...
- The steps to install Ansible on a Milk-V Mars SBC include installing
rustup
, adding rust env vars, installing other dependencies (sudo apt install -y pkg-config python3-pip
), and then runningpip3 install ansible
. There were issues like locking up and getting an "IndexError: list index out of range", but after reinstalling rust and trying again, Ansible was installed with some locale-related errors. Eventually, it worked withLC_ALL="C.UTF-8" ansible --version
. - It is hoped that as RISC-V becomes more widespread, more universal wheels will exist and the installation of the Rust language will become simpler and more stable.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。