- Could not import the lzma module.
/home/app/python3/lib/python3.7/site-packages/pandas/compat/init.py:85: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
warnings.warn(msg)
环境问题
解决方法 :
安装环境: yum install -y xz-devel
configure && make && make install (可不用)
If you compile Python from source, you must have the lzma-dev package installed, or it will not be built into python.
For ubuntu: sudo apt-get install liblzma-dev
For centos: yum install -y xz-devel
Then configure && make && make install
shareimprove this answer