[英]Bigquery import asks for pyparsing in shell run
I get this error "ImportError: The 'pyparsing' package is required" after trying to run.py file with from google.cloud import bigquery
line.在尝试使用from google.cloud import bigquery
行运行 .py 文件后,我收到此错误“ImportError: The 'pyparsing' package is required” 。 Import was working before and is still working in the Jupyter Notebook or in Ipython. Import 之前是有效的,并且仍在 Jupyter Notebook 或 Ipython 中工作。
I looked at existing options here and tried:我在这里查看了现有选项并尝试了:
Does anyone have suggestions?有人有建议吗? Thanks谢谢
I found the problem.我发现了问题。 It is silly, but happens to me from time to time.这很愚蠢,但时常发生在我身上。 Do not name files in your project like - html.py
=).不要将项目中的文件命名为- html.py
=)。 It was in one of the folders of my project.它在我项目的一个文件夹中。 Really annoying, but nevertheless, hope it will help someone.真的很烦人,但是,希望它能对某人有所帮助。 Maybe you have same problem with different file name, but look up for files with common use names!)也许你对不同的文件名有同样的问题,但要查找具有常用名称的文件!)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.