0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

pip エラーの対処法(Upgrade to the latest pip and try again) 

Posted at

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%]
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?