Loading

Python-pipe报错合集

1.ModuleNotFoundError: No module named 'setuptools_rust'

在使用python3.8的pip安装cryptography时报如下错误

Collecting cryptography>=2.6.0 (from aliyun-python-sdk-core>=2.13.12->oss2->-r /home/requirements.txt (line 16))
  Downloading https://mirrors.aliyun.com/pypi/packages/fa/2d/2154d8cb773064570f48ec0b60258a4522490fcb115a6c7c9423482ca993/cryptography-3.4.6.tar.gz (546kB)
    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-gsnl9xmu/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-gsnl9xmu/cryptography/
The command '/bin/sh -c python3 -m pip install -r /home/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/' returned a non-zero code: 1

解决办法, 升级pip即可
python3.8 -m pip install --upgrade pip

posted @ 2021-12-30 09:35  日行一善g  阅读(33)  评论(0编辑  收藏  举报