Google Cloud ML - 无法找到模块

时间:2017-06-22 22:15:56

标签: python machine-learning google-cloud-platform

我正在尝试在Google Cloud ML上运行模型,但我甚至无法在本地运行它

我的代码组织如下:

cloud/
  trainer/
        task.py
        othermodules.py

我有一个导入其他模块的模块。

按照如何在本地首先运行模型的指南,他们提供下一个命令:

gcloud ml-engine local train 
--package-path trainer/ 
--module-name trainer.task
--job-dir=$MODEL

我运行此命令,而我在名为 cloud 的文件夹中,但是我收到以下错误:

ImportError: No module named adressing

地址是培训师文件夹中的其中一个模块,而adressing.py文件实际上位于文件夹中。

但是,如果我使用 python trainer / task.py 运行它,它的效果非常好。

有关正在发生的事情的任何想法?

0 个答案:

没有答案