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

后端 未结 9 1937
予麋鹿
予麋鹿 2021-01-01 12:19

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         


        
相关标签:
9条回答
  • 2021-01-01 13:02

    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.

    0 讨论(0)
  • 2021-01-01 13:05

    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.

    0 讨论(0)
  • 2021-01-01 13:05

    The issue is not with %USERPROFILE%\ or C:\Users\amirs\, the issue is that eb is installed in \AppData\Roaming\ not \AppData\Local\

    just use C:\Users\amirs\AppData\Roaming\Python\Python38\Scripts. The missing part was \Roaming\

    0 讨论(0)
提交回复
热议问题