使用windows 10和Python3.9与PyCharm IDE
我试图使用以下代码列出管道:
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管道.
I通过在Pycharm终端中执行以下命令安装了Kubeflow管线SDK:
创建-名称kfp管道python=3.7
运行时的:
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我试过
安装gcloud并初始化
‘
发布于 2020-12-06 10:34:54
我过渡到Ubuntu,从那里解决了问题。
我所做的:
还使用gcloud components install component_id命令安装gsutil和kubectl
apt-get更新;apt-获取安装-y wget bzip2 wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda3 3-最新-Linux-x86_64.-y创建-名称为-y管道python=3.7 conda激活-y管道pip3安装kfp -升级
发布于 2021-01-12 10:05:57
我也遇到了同样的问题。我通过使用Ubuntu而不是Windows来修复它。使用VM并在VM中运行Ubuntu。Ubuntu环境更易于设置和管理。
https://stackoverflow.com/questions/65002633
复制相似问题