Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installating AWS CLI on Windows 7 #7659

Closed
ribery77 opened this issue Feb 12, 2023 · 5 comments
Closed

Installating AWS CLI on Windows 7 #7659

ribery77 opened this issue Feb 12, 2023 · 5 comments

Comments

@ribery77
Copy link

Describe the bug

Hi All. I try to install AWS CLI on Windows 7. I stumble upon this error below.
Aws_CLI

I try to install Visual C++ Redistributable for Visual Studio 2015 but it does not help me. Please see reference here https://stackoverflow.com/questions/54214600/pyinstaller-error-loading-python-dll-formatmessagew-failed

Any suggestions are welcome.

Expected Behavior

I cannot isntall AWS CLI/

Current Behavior

It does not work.

Reproduction Steps

NA

Possible Solution

No response

Additional Information/Context

No response

CLI version used

2

Environment details (OS name and version, etc.)

Windows 7 sp1

@ribery77 ribery77 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 12, 2023
@tim-finnigan tim-finnigan self-assigned this Feb 13, 2023
@tim-finnigan
Copy link
Contributor

Hi @ribery77 thanks for reaching out. This appears to be expected behavior. You're using Python 3.9 and that version is not supported by Windows 7 as noted here: https://www.python.org/downloads/release/python-390/

The installer now also actively disallows installation on Windows 7. Python 3.9 is incompatible with this unsupported version of Windows.

Also in the AWS CLI v2 installation instructions it notes the requirement of 64-bit Windows. For more information on supported Python versions you can refer to this blog post: https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/

@tim-finnigan tim-finnigan added installation closing-soon This issue will automatically close in 4 days unless further comments are made. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 13, 2023
@ribery77
Copy link
Author

Hi @tim-finnigan . Therefore which version of CLI I need to install for Windows 7?

@github-actions github-actions bot removed the closing-soon This issue will automatically close in 4 days unless further comments are made. label Feb 15, 2023
@tim-finnigan
Copy link
Contributor

First you'd need to downgrade your version of Python as 3.9 is not supported on Windows 7.

For the AWS CLI v2 you'd need a 64-bit version of Windows as mentioned here: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#getting-started-install-instructions

Otherwise you can try installing v1 as documented here: https://docs.aws.amazon.com/cli/v1/userguide/install-windows.html.

@tim-finnigan tim-finnigan added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Feb 16, 2023
@github-actions github-actions bot added closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Feb 18, 2023
@tlhogi84
Copy link

You need to first verify the version of Python that can be supported by your machine.
On windows 7, the most recent version that can be downloaded is Python 3.8.8

You then need to check which version of AWS CLI v2 is supported by your version of Python.
This can be verified on the change logs

You can see in the logs that version 2.5.0 and above require Python 3.9 and higher.
Thus, if you have Python 3.8.8, you will need to install AWS CLI v2 2.4.29 and lower.

You can install a version via the following link:
https://awscli.amazonaws.com/AWSCLIV2-2.4.29.msi

Replace the version as appropriate

@bencfreeman
Copy link

You need to first verify the version of Python that can be supported by your machine. On windows 7, the most recent version that can be downloaded is Python 3.8.8

You then need to check which version of AWS CLI v2 is supported by your version of Python. This can be verified on the change logs

You can see in the logs that version 2.5.0 and above require Python 3.9 and higher. Thus, if you have Python 3.8.8, you will need to install AWS CLI v2 2.4.29 and lower.

You can install a version via the following link: https://awscli.amazonaws.com/AWSCLIV2-2.4.29.msi

Replace the version as appropriate

I've been trying to solve this problem for the last day and a half in my spare time, and I went down a bunch of irrelevant Python rabbit holes. I've never knowingly and purposefully installed python on anything, ever, so it seemed odd that I would need to install an older version just to be able to run what I thought was a standalone exe. I've used the AWS CLI V2 for years on Win7 and Win10 systems. I recently needed to install and use the CLI on a Windows 7 PC, and I wish I had looked into earlier builds of the AWS CLI first.

This answer is perfect. I downloaded and installed the MSI from the link and now I can get back to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants