ImportError:没有名为options.pipeline_options的模块

时间:2017-05-30 21:10:50

标签: python-2.7 google-cloud-platform pipeline google-cloud-dataflow apache-beam

This is the error screenshot, click
我想在gcloud SDK上使用python 2.7中的数据流运行wordcount程序

我已经使用路径导入PipelineOptions,

以下是两种方法 -
1.from apache_beam.options.pipeline_options import PipelineOptions
  来自apache_beam.options.pipeline_options导入SetupOptions

2.from apache_beam.pipeline import PipelineOptions
  来自apache_beam.pipeline导入SetupOptions

但它仍然显示' ImportError:没有名为options.pipeline_options'在我尝试的两种方法中 在apache_beam或python 2.7中有任何解决方案吗?

0 个答案:

没有答案