在 PyCharm IDE 中使用 Windows 10 和 Python 3.9
我正在尝试使用以下代码列出管道:
import kfp
client = kfp.Client(host='.......bb92ea05-dot-us-central2.pipelines.googleusercontent.com')
client.list_pipelines()
我知道主机变量是正确的,因为我从 AI 平台管道复制了它。我遇到以下问题:
FileNotFoundError: [WinError 2] The system cannot find the file specified
我认为找不到该文件,因为该程序无法连接到 GCP 的 AI PLatform 管道。
我通过在 Pycharm 终端中执行以下命令安装了 Kubeflow Pipeline SDK:
- conda create --name mlpipeline python=3.7
- conda 激活 mlpipeline
- pip3 安装 kfp --upgrade --user
当我运行时:
kfp diagnose_me
我收到以下命令错误:
Google Cloud SDK is not installed, gcloud, gsutil and kubectl are required for this app to run. Please follow instructions at https://cloud.google.com/sdk/install to install the SDK
我努力了
- 安装 Google Cloud SDK 并初始化 gcloud(虽然当我运行命令时显示“找不到 Python”)
- 使用 gcloud 命令安装 kubectl 和 gsutil