[英]ImportError: No module named cloud even though google-cloud for python is installed
I installed google-cloud for python by using the following command: 我使用以下命令为python安装了google-cloud:
sudo easy_install google-cloud
The client got installed sucessfully, but now when I run the script it gives me the following error: 客户端安装成功,但是现在运行脚本时,出现以下错误:
Traceback (most recent call last):
File "coreAPI.py", line 8, in <module>
from google.cloud import bigquery
ImportError: No module named cloud
Why does this error occur? 为什么会发生此错误? Isn't easy install meant to install the cloud module?
简易安装不是要安装云模块吗?
I was able to find the following link explaining that you should run the following command pip install --upgrade google-cloud-bigquery
to install the Python BigQuery client library. 我能够找到以下链接,说明您应该运行以下命令
pip install --upgrade google-cloud-bigquery
来安装Python BigQuery客户端库。 There's also an example at the bottom of the page on how to call the library. 页面底部还有一个有关如何调用库的示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.