【发布时间】:2021-02-07 05:55:15
【问题描述】:
我正在尝试对 JSON 文件 records.json 运行 ML 预测请求。
!gcloud ai-platform predict --model housing_prices --json-instances records.json
我收到以下错误。
Using endpoint [https://ml.googleapis.com/]
ERROR: gcloud crashed (AttributeError): 'NoneType' object has no attribute 'framework'
所有库都已导入。
import pandas as pd
import tensorflow as tf
我正在关注 qwiklabs lab“使用 Tensorflow 和 AI 平台预测房价”。所有命令都在 GCP 上的 Jupyter 笔记本中,使用 tensorflow 框架。我错过了一些东西。任何帮助表示赞赏。
【问题讨论】:
-
什么版本的 CLI:
gcloud --version? -
谢谢约翰,我确实检查了版本。这是最新的326.0。 0. - 笔记本在 Google 管理的最新 CLI 上运行
标签: tensorflow google-cloud-platform gcloud gcp-ai-platform-notebook