Replacing awscli v1 with awscli v2 on Windows 10

0

I have awscli version 1.27.115 using pip. My python version is 3.9. I want to update it to awscli v2. All the links on AWS mention to remove it from Add / Remove panel and then install awscliv2 but I don't see AWS Command Line in the Control Panel Add / Remove programs. How can I proceed? Also, I can't use msi to install awscliv2 as msi requires admin access and I don't have admin on the machine. I will have to use pip to do so.

One other piece of information - I have awscli version installed in 2 places

I have python in two places - H:\Software\Python3.9 - version 3.9.7

C:\Software\Python3.9 - version 3.9.13 and C:\Utilities\venvs39\gluevenv is virtual env from C:\Software\Python3.9

H:\Software\Python3.9>where aws

C:\Utilities\venvs39\gluevenv\Scripts\aws C:\Utilities\venvs39\gluevenv\Scripts\aws.cmd

H:\Software\Python3.9\Scripts\aws H:\Software\Python3.9\Scripts\aws.cmd

I think I will have to remove the awscliv1 from both the places.

Can I remove awscli v1 using pip uninstall and then install v2 again using pip install?

Thanks

1 Antwort
0

Yes, you can unistall AWS CLI v1 using the following command:

pip3 uninstall awscli

or

pip uninstall awscli

More information about uninstalling AWS CLI v1 on the following documentation: https://docs.aws.amazon.com/cli/v1/userguide/install-windows.html#awscli-install-windows-pip:~:text=Uninstall%20the%20AWS%20CLI%20version%201%20using%20pip

After it has been uninstalled, then you can install AWS CLI v2 using the following instructions: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#:~:text=Install%20or%20update%20the%20AWS%20CLI

AWS
vtjean
beantwortet vor einem Jahr
  • When I did pip uninstall awscli, it uninstalled only from one location and then when I tried to execute that again, hoping, it will uninstall from the second location, it gave error. But, if I tried was --version, it didn't work either. So, I just physically deleted the folders from the second location to remove awscli completely. To install awscliv2 on Windows, the 'pip install awscliv2' doesn't seem to work. I doesn't give any error, but that doesn't actually get installed either. We don't have admin accesses on our machines and psi requires admin access. I worked with our desktop team, to get awscliv2 installed on my windows vdi.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen