Unable to install AWS Elastic Beanstalk CLI (Win10, Python 3.6, Pip 9.0.1)

﹥>﹥吖頭↗ 提交于 2019-11-30 11:13:23
Adrian Seeley

After a great deal of running around I managed to figure out that I was missing an additional PATH entry, both of these were required to get eb to run on windows:

%USERPROFILE%\AppData\Local\Programs\Python\Python36\Scripts
%USERPROFILE%\AppData\Roaming\Python\Python36\Scripts

NOTE: If you have Python 3.7 installed, change "Python36" to "Python37" in both of the path entries.

This PATH worked for me...

%USERPROFILE%\AppData\Roaming\Python\Scripts;
%USERPROFILE%\AppData\Local\Programs\Python\Python36\Scripts;
%USERPROFILE%\AppData\Roaming\Python\Python36\Scripts;
C:\Program Files\Amazon\AWSCLI

This worked for me:

sudo -H pip3 install awsebcli --upgrade --ignore-installed six

I had the same problem these last few days.

Though the Amazon documentation does not even mention it (i.e. only the following AWS Command-Line Interface home page mentions it, but does not explain that it is required), in addition to the 'awsebcli' package (that also requires the 'boto3' package), you also need to download and install the 'aws-shell' package in order to get the command 'aws configure' to work:

https://aws.amazon.com/cli/

Click through the link for 'aws-shell' to the following GITHUB page and follow the install instructions: https://github.com/awslabs/aws-shell

Then after installation type 'aws configure' in your COMMAND WINDOW as per instructions at the following link, and it will work fine prompting you to enter the necessary AWS ACCESS KEY and SECRET ACCESS KEY:

http://boto3.readthedocs.io/en/latest/guide/quickstart.html

FYI - I tried changing the environment variable path as per your solution as well as in another link, but neither worked for me:

https://forums.aws.amazon.com/thread.jspa?threadID=228638

Thus I had to solve the issue with the true solution to the issue as detailed here.

Amir

I figured out the issue. It looks like I needed to add this to my environment variables:

%USERPROFILE%\AppData\Local\Programs\Python\Python36\Scripts

Even though it had the other C:\Users\amirs\... path as well.

If you are here and it is still not working you need (this possibly is since the new update)... you need to add the following in your Windows Environment variable path:

%USERPROFILE%\AppData\Local\Programs\Python\Python37-32\Scripts\
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!