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

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

eb --version

It shows this error:

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

operational program or batch file.

This is my version of Python:

 C:\>python --version Python 3.6.0 

This is my version of pip:

 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

+17
source share
6 answers

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

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

Even though he had a different path C:\Users\amirs\ ....

+1
source

After long runs I managed to find out that I was missing an extra PATH entry, and both needed eb work 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 path entries.

+22
source

This WAY 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 
+6
source

This worked for me:

 sudo -H pip3 install awsebcli --upgrade --ignore-installed six 
+3
source

I had the same problem in the last few days.

Although the Amazon documentation doesn’t even mention this (i.e. only the next AWS command line interface homepage is mentioned, it doesn’t explain that it is necessary), in addition to the awsebcli package (which also requires the boto3 package), you also need download and install the aws-shell package to get the aws configure command:

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

Follow the link for "aws-shell" to the next GITHUB page and follow the installation instructions: https://github.com/awslabs/aws-shell

Then, after installing the “aws configure” type in your COMMAND WINDOW according to the instructions in the following link, it will work with a prompt to enter the necessary access key to AWS and SECRET ACCESS KEY:

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

FYI - I tried to change the path to the environment variable according to your solution, as well as in another link, but it didn’t work for me:

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

Thus, I had to solve the problem with a true solution to the problem, as described here.

+2
source

If you are here and it still does not work, you need (perhaps this is due to a new update) ... you need to add the following to your path to the Windows environment variable:

 %USERPROFILE%\AppData\Local\Programs\Python\Python37-32\Scripts\ 
0
source

Source: https://habr.com/ru/post/1014195/


All Articles