Unable to install AWS Elastic Beanstalk CLI (Win10

2019-02-08 07:54发布

I am trying to install awsebcli on my machine and I am unable to run the command

eb --version

It shows this error:

'eb' is not recognized as an internal or external command,

operable program or batch file.

This is my Python version:

C:\>python --version
Python 3.6.0

This is my pip version:

C:\>pip --version
pip 9.0.1 from c:\users\amirs\appdata\local\programs\python\python36\lib\site-packages (python 3.6)

When I ran this command pip install --upgrade --user awsebcli to install awsebcli it successfully installed it.

Here are my environment variables for PATH: enter image description here

6条回答
来,给爷笑一个
2楼-- · 2019-02-08 08:28

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.

查看更多
Summer. ? 凉城
3楼-- · 2019-02-08 08:34

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.

查看更多
Rolldiameter
4楼-- · 2019-02-08 08:35

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\
查看更多
爷、活的狠高调
5楼-- · 2019-02-08 08:48

This worked for me:

sudo -H pip3 install awsebcli --upgrade --ignore-installed six
查看更多
相关推荐>>
6楼-- · 2019-02-08 08:49

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
查看更多
叛逆
7楼-- · 2019-02-08 08:54

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.

查看更多
登录 后发表回答