rhel 8 机器(red hat 8)上的 Python 要求文件

问题描述 投票:0回答:1

我正在 ubuntu 桌面上工作,并使用

pip freeze > requirements.txt
创建了一个requirements.txt 文件,但现在当我尝试在 rhel8 上安装这些软件包时,我无法安装,因为它给了我问题:-

ERROR: No matching distribution found for aiosignal==1.3.1 

其他软件包也存在类似问题。

system : rhel 8 
python 3.6.8
pip 21.3.1

我搜索并发现适用于 ubuntu 的 python 软件包不适用于 rhel 8。但我需要这些软件包,因为我必须运行我的应用程序。可能的选择是什么?

python python-3.x pip requirements.txt rhel8
1个回答
0
投票

请记住使用 python 虚拟环境创建需求文件,这样您就可以将包与操作系统 python 包隔离。

我建议的第一件事是通过以下方式升级你的 pip:

python -m pip install --upgrade pip

但是,查看 pipy 上的软件包信息,它说需要 python 3.6 或更高版本,但是,在同一站点的不同部分中,它说 python 3.7,这似乎有点令人困惑。

此外,查看 RHEL 8 文档here,我发现 Red Hat Satellite 的存储库之一中包含一个名为 python39-aiosignal 的软件包。就我而言,我以前从未使用过 RHEL,但我建议将您的 python 版本升级到 3.9,并尝试从 RHEL 发行版再次安装该软件包。

© www.soinside.com 2019 - 2024. All rights reserved.