我在熊猫中使用google bigquery包时遇到问题。我已经安装了google-api-python-client以及pandas-gbq软件包。但是由于某种原因,当我去查询表时,出现了DistributionNotFound: The 'google-api-python-client' distribution was not found and is required by the application
错误。这是我的代码段:
import pandas as pd
from pandas.io import gbq
count_block = gbq.read_gbq('SELECT count(int64_field_0) as count_blocks FROM Data.bh', projectid)
答案 0 :(得分:1)
在这种情况下使用虚拟环境可以排除图书馆安装方面的问题