- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我想在我的 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/
我是一名优秀的程序员,十分优秀!