![](/img/trans.png)
[英]google cloud deploy ERROR: Could not find a version that satisfies the requirement
[英]Bitbucket Pipelines - AWSCLI - ERROR: Could not find a version that satisfies the requirement botocore==1.29.21 (from awscli)
今天我们遇到了一个关于 aws cli 依赖项 botocore 的特定错误。 我们正在使用 bitbucket 缓存中的 pip,如下面的 yml 所示:
- step: &build-and-publish
name: Build and Publish
services:
- docker
caches:
- pip
script:
- pip3 install awscli
在构建过程中,出现以下错误: ERROR: Could not find a version that satisfy the requirement botocore==1.29.21 (from awscli) 。
我们的解决方案是使用 bitbucket-pipelines.yml 文件中的以下代码升级 pip: pip install --upgrade pip 。
最终的bitbucket-pipelines.yml:
- step: &build-and-publish
name: Build and Publish
services:
- docker
caches:
- pip
script:
- pip install --upgrade pip
- pip3 install awscli
我们不知道这是 Bitbucket 管道上的错误还是我们的项目有问题。 我们仍在调查中。 但如果它是一个错误,也许这个解决方案会有所帮助。
awscli 1.27.21 依赖于 botocore 1.29.21 昨天 20:16 UTC 同时发布(上传到 pypi.org)。
我的猜测是有一小段时间 window pypi.org 尚未在全球范围内持续分发此信息的可能性非零。
现在再试一次。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.