无法在CentOS7上从源代码编译Python3.4时构建可选模块readline和_curses。

2024-06-10 19:47:26 发布

您现在位置:Python中文网/ 问答频道 /正文

在CentOS 7上从源代码处编译Python3.4.3时,自述文件指示运行

./configure
make
make test
sudo make install

在第二步,make,我明白了

^{pr2}$

但源代码中没有设置.py指示要做什么?看来我已经有必要的包裹了?在

$ sudo yum install readline
...
Package readline-6.2-10.el7.x86_64 already installed and latest version
Nothing to do

如何获得python3的readline模块?在


Tags: installpytestpackagereadlinemake源代码configure
0条回答
网友
1楼 · 发布于 2024-06-10 19:47:26

安装readline-devel

$ sudo yum install readline-devel
[...]
Installed:
  readline-devel.x86_64 0:6.2-10.el7

Dependency Installed:
  ncurses-devel.x86_64 0:5.9-14.20130511.el7_4

Dependency Updated:
  ncurses.x86_64 0:5.9-14.20130511.el7_4   [...]

Complete!

然后重新运行make

^{pr2}$

现在,readline和{}模块都已安装,并且不在缺失模块列表中。在

我从这个问题的答案中得到了提示:yum showing readline installed but readline command not working

事实证明,这种模式对其他丢失的包很有效。ssl需要openssl-devel包,zlib需要{}。在

相关问题 更多 >