在VM(Google云平台中的虚拟机)中导入Panda_gbq的错误 [英] Importing error of Panda_gbq in VM(Virtual Machine in Google cloud platform)

查看:86
本文介绍了在VM(Google云平台中的虚拟机)中导入Panda_gbq的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将BigQuery结果保存为数据框.我尝试使用 to_dataframe()-使用BigQuery tabledata.list API ,但速度非常慢.因此,我尝试使用 pandas_gbq ,但是当我尝试在虚拟机中的Jupyterlab中导入时,出现此错误.

I am trying to save BigQuery results as a dataframe. I tried to use to_dataframe() - Uses BigQuery tabledata.list API but its very slow. So, I am trying to use pandas_gbq but when I try to import in Jupyterlab in virtual machine then I get this error.

我什至使用pip进行安装,但出现相同的错误.有帮助吗?

I installed even using pip but getting same error. Any help?

推荐答案

您的Jupyerlab实例上似乎未安装此软件包.您应该安装它(只需执行一次),然后再次运行代码.

It looks like this package is not installed on your instance of Jupyerlab. You should install it (you only need to do this once) and run your code again.

由于您位于Jupyterlab,因此可以从笔记本内部导入带有前缀的shell命令.

Since you are in Jupyterlab, you can import from inside your notebook my prefixing your shell command with !.

例如:!pip安装熊猫

这篇关于在VM(Google云平台中的虚拟机)中导入Panda_gbq的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆