Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing AWS CLI v2 through PIP on Windows

Is it possible to install AWS CLI v2 through PIP on Windows?

In the instructions the recommended way to install is via MSI, but I want to use PIP.

What if I install CLI like given on Github in a Linux way:

python -m pip install awscli

Will it install v1 or v2 by default?

like image 501
Suncatcher Avatar asked Feb 21 '26 19:02

Suncatcher


1 Answers

For people would like to use pipx to isolate between environments, the url mentioned by @FlyingTeller git+https://github.com/aws/aws-cli/tree/v2 does not work with pipx, instead you can try this:

pipx install git+https://github.com/aws/aws-cli.git@v2

After that you can see:

$ aws --version
aws-cli/2.4.17 Python/3.9.9 Linux/5.4.0-99-generic source/x86_64.ubuntu.20 prompt/off
like image 110
Gea-Suan Lin Avatar answered Feb 24 '26 10:02

Gea-Suan Lin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!