安装完 Google Cloud Bigquery 模块后,如果我将该模块导入到 python 代码中。我看到了这条警告信息。我在 python 3.7.3 Virtualenv 中也遇到过这种情况。
尝试重新安装 GCP 大查询模块 如果我们写“ from google.cloud import bigquery”,则在 python 代码中应该不会导致任何错误或消息。
import os
import sys
import logging
from datetime import datetime
from google.cloud import bigquery
/home/informatica/.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)
exit()