[root@k-master kubespray-2.15.0]# cat requirements.txt
ansible==2.9.16
jinja2==2.11.1
netaddr==0.7.19
pbr==5.4.4
jmespath==0.9.5
ruamel.yaml==0.16.10
[root@k-master kubespray-2.15.0]# pip3.6 install -r requirements.txt
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3.6 install --user` instead.
Collecting ansible==2.9.16 (from -r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/7b/7e/fdbcb2278e8b201c076e43fe8fad479a3f473f090c6af6dd72f7f03f0478/ansible-2.9.16.tar.gz (14.2MB)
100% |████████████████████████████████| 14.3MB 73kB/s
Collecting jinja2==2.11.1 (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/27/24/4f35961e5c669e96f6559760042a55b9bcfcdb82b9bdb3c8753dbe042e35/Jinja2-2.11.1-py2.py3-none-any.whl (126kB)
100% |████████████████████████████████| 133kB 153kB/s
Collecting netaddr==0.7.19 (from -r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/ba/97/ce14451a9fd7bdb5a397abf99b24a1a6bb7a1a440b019bebd2e9a0dbec74/netaddr-0.7.19-py2.py3-none-any.whl (1.6MB)
100% |████████████████████████████████| 1.6MB 223kB/s
Collecting pbr==5.4.4 (from -r requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/7a/db/a968fd7beb9fe06901c1841cb25c9ccb666ca1b9a19b114d1bbedf1126fc/pbr-5.4.4-py2.py3-none-any.whl (110kB)
100% |████████████████████████████████| 112kB 160kB/s
Collecting jmespath==0.9.5 (from -r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/a3/43/1e939e1fcd87b827fe192d0c9fc25b48c5b3368902bfb913de7754b0dc03/jmespath-0.9.5-py2.py3-none-any.whl
Collecting ruamel.yaml==0.16.10 (from -r requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/a6/92/59af3e38227b9cc14520bf1e59516d99ceca53e3b8448094248171e9432b/ruamel.yaml-0.16.10-py2.py3-none-any.whl (111kB)
100% |████████████████████████████████| 112kB 201kB/s
Collecting PyYAML (from ansible==2.9.16->-r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/7a/5b/bc0b5ab38247bba158504a410112b6c03f153c652734ece1849749e5f518/PyYAML-5.4.1-cp36-cp36m-manylinux1_x86_64.whl (640kB)
100% |████████████████████████████████| 645kB 132kB/s
Collecting cryptography (from ansible==2.9.16->-r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/9b/77/461087a514d2e8ece1c975d8216bc03f7048e6090c5166bc34115afdaa53/cryptography-3.4.7.tar.gz (546kB)
100% |████████████████████████████████| 552kB 311kB/s
Complete output from command python setup.py egg_info:
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-p_2b64tm/cryptography/setup.py", line 14, 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-p_2b64tm/cryptography/
我执行安装包的时候遇到了这个错误要怎么解决?