0. はじめに
pip3のコマンドを打ったところ、以下のようなエラーが表示された。
ここでは、その対処法を記載する。
=============================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-l92ccydt/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-l92ccydt/cryptography/
1. pip をアップグレードする
$sudo rpm -Uvh platform-python-pip-9.0.3-18.el8.n
oarch.rpm python3-pip-9.0.3-18.el8.noarch.rpm
Verifying... ( 50%################################# [100%]
Preparing... ( 25%################################# [100%]
Updating / installing...
1:platform-python-pip-9.0.3-18.el8 ( 2%################################# [ 25%]
2:python3-pip-9.0.3-18.el8 ( 3%################################# [ 50%]
Cleaning up / removing...
3:python3-pip-9.0.3-15.el8 ( 10%################################# [ 75%]
4:platform-python-pip-9.0.3-15.el8 ( 2%################################# [100%]
2. python3-cryptography を再インストールする
$ sudo rpm -ivh --replacepkgs python3-cryptography-2.3-3.el8.x86_64.rpm
Verifying... (100%################################# [100%]
Preparing... (100%################################# [100%]
Updating / installing...
1:python3-cryptography-2.3-3.el8 ( 1%################################# [100%]