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 ...
随机推荐
- mybatis 打印SQL
如果使用的是application.properties文件,加入如下配置: #打印SQL logging.level.com.jn.ssr.supererscuereporting.dao=debu ...
- 基于Ubuntu Server 16.04 LTS版本安装和部署Django之(一):安装Python3-pip和Django
近期开始学习基于Linux平台的Django开发,想配置一台可以发布的服务器,经过近一个月的努力,终于掌握了基于Apache和mod-wsgi插件的部署模式,自己也写了一个教程,一是让自己有个记录,二 ...
- sql插入查询出的数据,主键递增
INSERT INTO C_DPRECORD SELECT (SEQ_C_DPRECORD.NEXTVAL ) AS ID, DEV_ID, DEV_CHNNUM, DEV_NAME, DEV_CHN ...
- python内置模块[re]
python内置模块[re] re模块: python的re模块(Regular Expression正则表达式)提供各种正则表达式的匹配操作,在文本解析.复杂字符串分析和信息提取时是一个非常有用的工 ...
- PL/SQL查看表结构
SET LONG 99999;SET LINESIZE 140 PAGESIZE 1000;SELECT DBMS_METADATA.GET_DDL('&OBJECT_TYPE','& ...
- JS运行在服务器端注意事项
<script runat="server" language="javascript"> </script> 1. ASP利于JS重载 ...
- PostgreSQL基本配置
记一下Postgresql的基本操作,在Ubuntu下使用apt-get安装是不会像MySQL那样都配置好了,而是要安装后再配置: 1. 基本安装 # 安装postgresql和pgadmin(一个管 ...
- 机器学习sklearn的快速使用--周振洋
ML神器:sklearn的快速使用 传统的机器学习任务从开始到建模的一般流程是:获取数据 -> 数据预处理 -> 训练建模 -> 模型评估 -> 预测,分类.本文我们将依据传统 ...
- 【CodeForces】9A-Die Roll
目录 Question Solution 解法1 解法2 Question 三个人掷骰子,前两个人的得分分别是Y和W,问第三个人胜利的概率(第三个人得分不小于Y.W)?结果输出格式为\(A/B\),如 ...
- npm安装不成功的原因
使用npm安装electron不成功的解决方法 使用npm安装electron不成功的解决方法 根据官网提供的electron的npm安装方法,使用下面的命令进行安装,结果不成功 npm instal ...