小编Jin*_*Cao的帖子

由于依赖项冲突 (Python 3),无法在我们的 python 应用程序 (Google Cloud Platform) 中安装 google-api-core 包

当我尝试安装 Google Core API 包时,该包的每个不同版本总是会出现错误。该应用程序在 Python 3 中运行,我得到以下日志:

The user requested google-api-core==1.21.0
    google-cloud-core 1.4.3 depends on google-api-core<2.0.0dev and >=1.19.0
    google-api-core[grpc,grpcgcp] 1.29.0 depends on google-api-core 1.29.0
Run Code Online (Sandbox Code Playgroud)
ERROR: Cannot install -r requirements.txt (line 52) and google-api-core[grpc,grpcgcp]==1.14.0 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

The command '/bin/sh -c pip3 install -r requirements.txt' returned a non-zero code: 1
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
Run Code Online (Sandbox Code Playgroud)

我们想在 Google Cloud Platform 上安装这个包。有人可以帮我解决冲突的依赖问题吗?

我们尝试了以下软件包,但没有一个起作用。

#google-api-core==1.29.0 …
Run Code Online (Sandbox Code Playgroud)

google-app-engine google-api python-2.7 google-cloud-platform google-cloud-functions

9
推荐指数
1
解决办法
1万
查看次数