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

Amir picture Amir · Jan 18, 2017 · Viewed 9.8k times · Source

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

Answer

Adrian Seeley picture Adrian Seeley · May 22, 2017

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.