gpt4 book ai didi

python - 如何在 ubuntu 14 中安装 aws-sam-cli?

转载 作者:太空狗 更新时间:2023-10-30 02:37:16 25 4
gpt4 key购买 nike

我想在我的 ubuntu 14.04 上更新 aws-sam-cli。我有 sam 0.2.11 版本。我想在 0.3.0 中更新。当我运行时

pip install --user aws-sam-cli

pip install --user --upgrade aws-sam-cli

我得到了

Downloading/unpacking aws-sam-cli Downloading aws-sam-cli-0.3.0.tar.gz (128kB): 128kB downloaded Running setup.py (path:/tmp/pip_build_amber/aws-sam-cli/setup.py) egg_info for package aws-sam-cli /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) error in aws-sam-cli setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers Complete output from command python setup.py egg_info: /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) error in aws-sam-cli setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers

Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_amber/aws-sam-cli Storing debug log for failure in /home/amber/.pip/pip.log**

最佳答案

我遇到了同样的问题,这是我安装 aws-sam-cli 的方式

如果您有旧版本,请确保卸载 aws-sam-local

npm uninstall -g aws-sam-local

然后运行

pip install --user --upgrade setuptools
pip install ez_setup
pip install --user --upgrade aws-sam-cli

关于python - 如何在 ubuntu 14 中安装 aws-sam-cli?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50637089/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com