Problem to set up Cli in my new account

0

Hi, I am trying to set up Cli in my new account.

I follow the instruction on https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

I Downloaded and run the AWS CLI MSI installer for Windows (64-bit).

I go to Command prompt to confirm the installation: open the Start menu, search for cmd to open a command prompt window, and at the command prompt use the aws --version command.

After run it, there is an error message, even though I uninstall & re install a couple times.

The error message: “The program can't start because api-ms-win-core-path-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem.”

I also try to remedy using the suggestions from this site:

https://www.sts-tutorial.com/download/api-ms-win-core-path-l1-1-0

  1. Download & install “api-ms-win-core-path-l1-1-0.dll”
  2. Download & install “the Microsoft Visual C++ Redistributable for Visual Studio 2019”

But I still get the same error message.

What else can I do?

Thanks

prs
已提問 6 個月前檢視次數 201 次
1 個回答
1
已接受的答案

Which version of Windows are you running?

This exact error message comes up when trying to install Python 3.9 on Windows 7 https://github.com/python/cpython/issues/85584

And the Python downloads page confirms that anything 3.9 or later cannot be used on Windows 7 https://www.python.org/downloads/windows/

The latest version of the AWS CLI uses Python 3.11 https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

profile picture
專家
Steve_M
已回答 6 個月前
  • The Windows version is Windows 7 Ultimate SP 1. I see the problem now, the version of Windows that need to be upgrade.

  • Either that, or install a version of AWS CLI that relies on a version of Python < 3.9.

    See https://github.com/aws/aws-cli/issues/7659 which is a similar, but not identical, problem to yours.

    The second-from-last contribution (from tlhogi84) https://github.com/aws/aws-cli/issues/7659#issuecomment-1759526686 appears to link to a version that may be suitable for you (I have no way of testing this myself though, as I don't have access to a Windows 7 host).

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南