Python3.8 ModuleNotFoundError: No module named 'setuptools_rust'
1603 ワード
python 3.8を使用したpipインストール
解決策、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 "", line 1, in
File "/tmp/pip-build-gsnl9xmu/cryptography/setup.py", line 14, in
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