我在执行pip3 install docker-compose遇到以下的报错信息。
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-fw9zl07w/cryptography/setup.py", line 18, in <module>
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-fw9zl07w/cryptography/
![](https://img-blog.csdnimg.cn/img_convert/0853b1c8f84c4e708d1674177d7dd1a3.png)
解决办法
pip3 install -U pip setuptools
在执行pip3 install docker-compose,完美解决