【问题标题】:CloudML RuntimeError: module compiled against API version 0xc but this version of numpy is 0xbCloudML RuntimeError:针对 API 版本 0xc 编译的模块,但此版本的 numpy 为 0xb
【发布时间】:2018-10-13 20:33:43
【问题描述】:

当我在本地进行测试时,一切似乎都运行良好。当我远程提交作业时:

gcloud ml-engine jobs submit training $JOB_NAME \
  --job-dir gs://$BUCKET_NAME/$JOB_NAME \
  --runtime-version 1.7 \

我收到以下错误:

在我的代码中,我唯一使用 numpy 的地方是加载我的文件 - data.npz 使用:

train_file = gs://path_to_data.npz
f = BytesIO(file_io.read_file_to_string(train_file, binary_mode=True))
data = np.load(f)

为了创建 .npz,我使用了具有 numpy v 1.14 的 google-datalab,而 CloudML 的 1.7 运行时具有 1.13.3,但我怀疑这就是原因。我的本地机器也有 1.13.3 并且似乎没有显示错误。

作业仍然成功完成,我只想摆脱这些警告/错误。

【问题讨论】:

    标签: python google-cloud-platform google-cloud-ml


    【解决方案1】:

    我们知道这些警告消息,并正在努力在运行时版本 1.8 中解决这些问题,我们希望尽快发布。

    【讨论】:

      猜你喜欢
      • 2018-06-11
      • 2021-06-29
      • 2016-02-24
      • 2016-09-27
      • 2023-03-20
      • 2022-11-01
      • 2018-09-20
      • 1970-01-01
      相关资源
      最近更新 更多