Leap 安装 python3.9.6 的时候提示缺少库,需要怎样解决

The necessary bits to build these optional modules were not found:
_curses _curses_panel _dbm
_gdbm _lzma _sqlite3
_uuid nis readline
To find the necessary bits, look in setup.py in detect_modules() for the module’s name.

The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc atexit pwd
time

使用zypper search命令搜索一下相关的开发包,安装对应的开发包就行了。

你这是在编译安装 python 3.9 吗?