【问题标题】:No matching distribution found for botocore<1.22.0,>=1.21.0 (from awsebcli)没有找到 botocore<1.22.0,>=1.21.0 的匹配分布(来自 awsebcli)
【发布时间】:2022-04-19 13:14:07
【问题描述】:

CircleCi 返回以下错误:

未找到 botocore = 1.21.0(来自 awsebcli)的匹配分布。

我的 config.yml 文件安装了以下依赖项:

  • sudo apt-get -y -qq 更新
  • sudo apt-get install python3-pip python-dev build-essential
  • sudo pip3 install --upgrade setuptools
  • sudo pip3 install awsebcli --upgrade pip3 install awscli

【问题讨论】:

    标签: python pip circleci botocore


    【解决方案1】:

    这些命令对我有用:

    - apt-get update && apt-get install -y python-dev
    - apt install python3 -y
    - apt install python3-pip -y
    - export LC_ALL=C.UTF-8
    - pip3 install awsebcli --upgrade
    

    【讨论】:

      【解决方案2】:

      这个问题已被提出upstream。建议的解决方法是sudo pip3 install awsebcli botocore==1.19.63 --upgrade

      【讨论】:

        【解决方案3】:

        如果您正在使用 aws 提供的 docker 容器:FROM amazon/aws-cli,python 版本为:2.7.18

        在这种情况下,如果您看到此错误:

        ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
        

        我用这个来修复它:

        pip install awsebcli botocore==1.19.63 --upgrade --use-feature=2020-resolver
        

        1.19.63 在您的情况下可能会有所不同

        【讨论】:

        • 它尝试安装,但在完成前出错:错误:无法为使用 PEP 517 的密码学构建轮子,无法直接安装
        猜你喜欢
        • 2018-12-09
        • 1970-01-01
        • 2017-05-07
        • 1970-01-01
        • 1970-01-01
        • 2017-11-14
        • 2019-09-04
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多