如何在ubuntu14中安装awssamcli?

2024-05-19 00:40:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在我的ubuntu14.04上更新aws sam cli。我有sam0.2.11版本。我想在0.3.0中更新。当我跑的时候

pip install --user aws-sam-cli

或者

^{pr2}$

我得到了

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**


Tags: installpipinpyinfoawscliegg
3条回答

尝试卸载旧版本,然后使用以下命令重新安装。在

npm卸载-g aws sam local

pip安装用户aws sam cli

如果两者都不适合您,那么您可以直接从GitHub存储库下载源代码并使用它。您可以在https://github.com/awslabs/aws-sam-cli/releases找到存储库

我也遇到了同样的问题,下面是我如何安装aws sam cli

如果您使用的是旧版本,请确保卸载aws sam local

npm uninstall -g aws-sam-local

那就跑吧

^{pr2}$

升级pip和{}:

pip install -U pip setuptools

相关问题 更多 >

    热门问题