ModuleNotFoundError: No module named 'setuptools_rust'

发布时间 2023-06-02 14:16:15作者: 海_纳百川

我在执行pip3 install webssh遇到以下的报错信息。

报错信息
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-my9sai1o/cryptography/setup.py”, line 14, in
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named ‘setuptools_rust’

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-my9sai1o/cryptography/

解决办法

pip3 install -U pip setuptools

说明:一般此类缺少模块的错误都是包的版本问题,基本都是升级或者降级包就可以解决