$ cat /etc/redhat-release
Red Hat Enterprise Linux release 9.1 (Plow)
$ pyenv install 3.7.16
:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/end0tknr/.pyenv/versions/3.7.16/lib/python3.7/lzma.py", line 27, in <module>
from _lzma import *
ModuleNotFoundError: No module named '_lzma'
WARNING: The Python lzma extension was not compiled. Missing the lzma lib?
$ sudo yum install xz-devel