导入 pandas 时使用 lzma 发出用户警告

Ale*_*eri 5 python pandas

我已经使用 python 3.7.3 在我的服务器上安装了 debian 8,当我尝试运行此代码时

import pandas as pd

d = {'Apple':{'Weight':12,'Colour':'red'},
     'Banana':{'Weight':11,'Colour':'yellow','Bunched':2}
    }

df = pd.DataFrame.from_dict(d, orient='index') # convert dict to dataframe

df.to_csv('fruits.csv') # write dataframe to file
Run Code Online (Sandbox Code Playgroud)

我收到这个警告:

/usr/local/lib/python3.7/site-packages/pandas/compat/__init__.py:84: 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)
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

我尝试再次编译 python 3.7.3 并安装 python 3.7.4 (不成功,因为我遇到了 gcc 错误)