When I try to install cryptography module with Python Poetry 1.1.4 package manager (poetry add cryptography
) in a Python 3.9.0 virtual environment, I get:
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.
This package requires Rust >=1.41.0.
----------------------------------------
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
Though I'm using pip 21.0.1 (latest), and I have no issue with Python 3.8.
Any idea on why and how to solve that? Latest cryptography module information says it's compatible with Python 3.6+.