1

我已成功更新数据存储区。然后我按照Google 的说明使用 Google Cloud Talent Solution。

但是当我运行我的一个函数时,这条线失败了:

from google.cloud import talent_v4beta1

当我在本地运行代码时,MS Code 提供了完成库的功能talent_v4beta1,但它在上面的行报告中崩溃:

ImportError: cannot import name 'talent_v4beta1' from 'google.cloud' (unknown location)

在文档页面(上面链接)中,它建议

pip install --upgrade google-cloud

但这可能会安装一个较旧的库?它报告“google-cloud-0.34.0”。我的Google Cloud SDK报告250.0.0。后者使用前者吗?

当我 CMDpip install --upgrade google-cloud它报告:

Collecting google-cloud
  Using cached https://files.pythonhosted.org/packages/ba/b1/7c54d1950e7808df06642274e677dbcedba57f75307adf2e5ad8d39e5e0e/google_cloud-0.34.0-py2.py3-none-any.whl
Installing collected packages: google-cloud
Successfully installed google-cloud-0.34.0

你能看到我错过或绊倒了哪一步吗?

4

1 回答 1

2

您还需要安装库 google-cloud-talent

pip3 install google-cloud-talent
于 2019-06-13T09:43:58.707 回答