Error installing (Failed building wheel for cryptography)

I am running Raspberrypi OS Desktop (5.10.0-15-amd64 #1 SMP Debian 5.10.120-1 (2022-06-09) x86_64 GNU/Linux) as a virtual machine on a Synology NAS. I am trying to install the WeatherFlow Pi-console, but it always stops with errors when installing the Python cryptography module.

[✗] Installing Python module
  Error: Unable to install Python module: cryptography

ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Failed to build installable wheels for some pyproject.toml based projects (cryptography)

I’ve updated pip to the latest version and installed rust and I still get the error. Is there something else I should try?