Install the AWS Command Line Interface on Linux
Install the AWS Command Line Interface on Linux
You can install the AWS Command Line Interface and its dependencies on most Linux distributions with pip, a package manager for Python.
Important
The awscli package is available in repositories for other package managers such as APT and yum, but it is not guaranteed to be the latest version unless you get it from pip or use the bundled installer
If you already have pip, follow the instructions in the main installation topic. Run pip --version to see if your version of Linux already includes Python and pip.
$ pip --version
If you don't have pip, check to see which version of Python is installed.
$ python --version
or
$ python3 --version
If you don't have Python 2 version 2.6.5+ or Python 3 version 3.3+, install Python. Otherwise, install pip and the AWS CLI.
Sections
Installing Pip
If you don't have pip, install pip with the script provided by the Python Packaging Authority.
To install pip
Download the installation script from pypa.io:
$curl -O https://bootstrap.pypa.io/get-pip.pyThe script downloads and installs the latest version of
pipand another required package namedsetuptools.Run the script with Python:
$python get-pip.py --userAdd the executable path to your PATH variable:
~/.local/binTo modify your PATH variable (Linux, macOS, or Unix)
Find your shell's profile script in your user folder. If you are not sure which shell you have, run
echo $SHELL.$ls -a ~
. .. .bash_logout .bash_profile .bashrc Desktop Documents DownloadsBash –
.bash_profile,.profile, or.bash_login.Zsh –
.zshrcTcsh –
.tcshrc,.cshrcor.login.
Add an export command to your profile script.
export PATH=~/.local/bin:$PATHThis command adds a path,
~/.local/binin this example, to the current PATH variable.Load the profile into your current session.
$source ~/.bash_profile
Verify that pip is installed correctly.
$pip --version
pip 8.1.2 from ~/.local/lib/python3.4/site-packages (python 3.4)
Installing the AWS CLI with Pip
Use pip to install the AWS CLI.
$ pip install awscli --upgrade --user
Verify that the AWS CLI installed correctly.
$ aws --version
aws-cli/1.11.84 Python/3.6.2 Linux/4.4.0-59-generic botocore/1.5.47
If you get an error, see Troubleshooting AWS CLI Errors.
To upgrade to the latest version, run the installation command again:
$ pip install awscli --upgrade --user
Adding the AWS CLI Executable to your Command Line Path
After installing with pip, you may need to add the aws executable to your OS's PATH environment variable.
Example AWS CLI install location - Linux with pip (user mode)
~/.local/bin
If you didn't install in user mode, the executable might be in the bin folder of your Python installation. If you don't know where Python is installed, run which python.
$ which python
/usr/local/bin/python
The output may be the path to a symlink, not the actual executable. Run ls -al to see where it points.
$ ls -al /usr/local/bin/python
~/.local/Python/3.6/bin/python3.6
To modify your PATH variable (Linux, macOS, or Unix)
Find your shell's profile script in your user folder. If you are not sure which shell you have, run
echo $SHELL.$ls -a ~
. .. .bash_logout .bash_profile .bashrc Desktop Documents DownloadsBash –
.bash_profile,.profile, or.bash_login.Zsh –
.zshrcTcsh –
.tcshrc,.cshrcor.login.
Add an export command to your profile script.
export PATH=~/.local/bin:$PATHThis command adds a path,
~/.local/binin this example, to the current PATH variable.Load the profile into your current session.
$source ~/.bash_profile
Install the AWS Command Line Interface on Linux的更多相关文章
- vue-cli 脚手架 Command Line Interface
mac sudo npm install -g nrm sudo npm config -g set unsafe-perm sudo npm install webpack@3.0.0 -g sud ...
- MYSQL5.7脚本运行时出现[Warning] Using a password on the command line interface can be insecure
MYSQL版本:5.7 在写linux脚本执行MYSQL命令的时候,如果使用 MYSQL="mysql -hlocalhost -P3306 -uroot -p666666" 登陆 ...
- 【mysql报错】MySQL5.7.27报错“[Warning] Using a password on the command line interface can be insecure.”
MySQL5.7.27报错“[Warning] Using a password on the command line interface can be insecure.”在命令行使用密码不安全警 ...
- MySQL 5.6 Warning: Using a password on the command line interface can be insecure
MySQL 5.6 在命令行输入密码,就会提示这些安全警告信息. Warning: Using a password on the command line interface can be inse ...
- MySQL 5.6 警告信息 command line interface can be insecure 修复
在命令行输入密码,就会提示这些安全警告信息. Warning: Using a password on the command line interface can be insecure. 注: ...
- atprogram.exe : Atmel Studio Command Line Interface
C:\Program Files\Atmel\Atmel Studio 6.1\atbackend\atprogram.exe No command specified.Atmel Studio Co ...
- Centos下_MysqL5.7在使用mysqldump命令备份数据库报错:mysqldump: [Warning] Using a password on the command line interface can be insecure.
在阿里云服务器增加一个shell脚本定时备份数据库脚本执行任务时,测试性的执行了备份命令,如下 [root@iZ2ze503xw2q1fftv5rhboZ mysql_bak]# /usr/local ...
- Warning: Using a password on the command line interface can be insecure.
[root@qttc ~]# /usr/local/mysql/bin/mysqldump -uroot -proot db > bak.sqlWarning: Using a passwor ...
- mysql 备份报错mysqldump: [Warning] Using a password on the command line interface can be insecure.
-------------------------------------------------------------------------------- mysql 备份报错mysqldump ...
随机推荐
- (数据科学学习手札18)二次判别分析的原理简介&Python与R实现
上一篇我们介绍了Fisher线性判别分析的原理及实现,而在判别分析中还有一个很重要的分支叫做二次判别,本文就对二次判别进行介绍: 二次判别属于距离判别法中的内容,以两总体距离判别法为例,对总体G1,, ...
- BZOJ2693: jzptab(莫比乌斯反演)
Time Limit: 10 Sec Memory Limit: 512 MBSubmit: 2068 Solved: 834[Submit][Status][Discuss] Descripti ...
- autofac无法解析一例
在asp.net mvc分项目开发中,如果类库位于其他的项目中,则必须在global中对其他项目的类库进行注册,否则会报“ None of the constructors found with 'A ...
- 『Python Kivy』官方乒乓球游戏示例解析
本篇文章用于对Kivy框架官方所给出的一个「乒乓球」小游戏的源码进行简单地解析.我会尽可能的将方方面面的内容都说清楚.在文章的最下方为官方所给出的这个小游戏的教程以及游戏源码. 由于篇幅所限,本文只简 ...
- mybatis <collection>标签 类型为string时无法获取重复数据错误
1.场景: fyq_share_house 表 和 fyq_sh_tag 表 两张表是一对多的关系, 一个楼盘对应多个标签,在实体类ShareHouse中使用 /** * 楼盘标签 */ privat ...
- github 初始化操作小记
Git作为一种越来越重要的工具,github又如此流行,现在就简单记录一下git的基础操作,希望能帮助大家快速体验入门! 1 查看本地是否存在”公钥”和”私钥” 如果没有,则执行: ssh-keyg ...
- CSS实现自适应下保持宽高比
在项目中,我们可能经常使得自己设计的网页能自适应.特别是网站中的图片,经常要求在网页放大(或缩小)时,宽高同时放大(或缩小),而且不变形(即保持正常的长宽比).为了不变形,常用的方法就是设置width ...
- CSS : @media 示例
.example { padding: 20px; color: white; } /* Extra small devices (phones, 600px and down) */ @media ...
- 学习materialize
<div class="container"> <div class="row"> </div> <div cla ...
- 点击查看大图Activity
1.使用方式 Intent intent = new Intent(FriendCircleActivity.this, ImageGralleryPagerActivity.class);//0,索 ...