python 解决Could not import the lzma module. Your installed Python is incomplete问题

发布时间 2023-08-15 11:59:52作者: 每天进步一点点点点点

python 安装好pandas后import报错
如下图:
image

原因分析

在执行./configure和make install的时候出现错误提示,被忽略了,如下图:
image

解决方法

安装yum install -y xz-devel
然后重新安装python,执行./configure和make install