我们尝试在RHEL 8.6 Linux机器上安装cryptography
模块,但没有成功
关于我们的服务器的简短信息
pip3 --version
pip 23.2.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
python3 --version
Python 3.9.16
pip3 list | grep setuptools
setuptools 68.2.2
more /etc/redhat-release
Red Hat Enterprise Linux release 8.6 (Ootpa)
uname -a
4.18.0-372.9.1.el8.x86_64 #1 SMP Fri Apr 15 22:12:19 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
安装过程中的示例
pip3 install --no-cache-dir --no-index "/tmp/1/cryptography-41.0.4-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl"
ERROR: cryptography-41.0.4-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl is not a supported wheel on this platform.
与diff版本
pip3 install --no-cache-dir --no-index "/tmp/cryptography-37.0.2-pp39-pypy39_pp73-manylinux_2_24_x86_64.whl"
ERROR: cryptography-37.0.2-pp39-pypy39_pp73-manylinux_2_24_x86_64.whl is not a supported wheel on this platform.
或不同版本
pip3 install --no-cache-dir --no-index "/tmp/cryptography-37.0.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
ERROR: cryptography-37.0.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl is not a supported wheel on this platform.
或
pip3 install --no-cache-dir --no-index "/tmp/cryptography-37.0.3-pp39-pypy39_pp73-manylinux_2_24_x86_64.whl"
ERROR: cryptography-37.0.3-pp39-pypy39_pp73-manylinux_2_24_x86_64.whl is not a supported wheel on this platform.
或
pip3 install --no-cache-dir --no-index "/tmp/cryptography-41.0.4.tar.gz"
Processing /tmp/cryptography-41.0.4.tar.gz
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [2 lines of output]
ERROR: Could not find a version that satisfies the requirement setuptools>=61.0.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=61.0.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
我也将setuptools降级到版本38.4.0,但同样的错误,我们将setuptools重新安装到原始版本- 68.2.2
所以我们不知道密码学是否可以安装在RHEL 8.6版本和python3.9上
1条答案
按热度按时间iyr7buue1#
Red Hat在
python3-cryptography
RPM包中提供了Pythoncryptography
模块的预构建版本。它与Python 3.9版本的系统兼容。您可以使用以下方式安装:我相信它已经包含在Red Hat Enterprise Linux 8.6中了。