【问题标题】:Cannot call tool execution using python -m无法使用 python -m 调用工具执行
【发布时间】:2019-06-19 11:41:07
【问题描述】:

我正在关注 Jenkins:

python3 -m pip install cfn-lint
> Requirement already satisfied...
python3 -m cfn-lint
> /usr/bin/python3: No module named cfn-lint

怎么了?为什么我不能使用刚刚安装的工具?

【问题讨论】:

    标签: python path pip amazon-cloudformation


    【解决方案1】:

    软件包将自身安装为cfnlint(而不是cfn-lint)。这意味着您可以通过python -m cfnlint 运行它。它还通过cfn-lint 公开了一个入口点。这意味着你可以做任何一个

    $ python -m cfnlint
    $ cfn-lint
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-11
      • 1970-01-01
      • 2014-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-03
      • 2018-12-15
      相关资源
      最近更新 更多