Skip to content

Instantly share code, notes, and snippets.

@Kcin1993
Last active October 7, 2020 06:15
Show Gist options
  • Save Kcin1993/57438e395fd3b12cd95fb9eef1fa3f88 to your computer and use it in GitHub Desktop.
Save Kcin1993/57438e395fd3b12cd95fb9eef1fa3f88 to your computer and use it in GitHub Desktop.

Install python2

$ ls -al /usr/local/bin/python*
$ brew tap-new kcin/homebrew-python2
$ brew extract python@2 kcin/homebrew-python2
$ brew install /usr/local/Homebrew/Library/Taps/kcin/homebrew-python2/Formula/python@2.7.17.rb

EB install hint when success

Success!

    Note: To complete installation, ensure `eb` is in PATH. You can ensure this by executing:

    1. Bash:

       echo 'export PATH="/Users/kcin/.ebcli-virtual-env/executables:$PATH"' >> ~/.bash_profile && source ~/.bash_profile

    2. Zsh:

       echo 'export PATH="/Users/kcin/.ebcli-virtual-env/executables:$PATH"' >> ~/.zshenv && source ~/.zshenv

   
    - NOTE: To complete installation, ensure `python` is in PATH. You can ensure this by executing:
   
      1. Bash:
   
         echo 'export PATH=/Users/kcin/.pyenv/versions/3.7.2/bin:$PATH' >> /Users/kcin/.bash_profile && source /Users/kcin/.bash_profile
   
      2. Zsh:
   
         echo 'export PATH=/Users/kcin/.pyenv/versions/3.7.2/bin:$PATH' >> /Users/kcin/.zshrc && source /Users/kcin/.zshrc

ELB Issue: -bash: /usr/local/bin/eb: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory

aws/aws-elastic-beanstalk-cli-setup#42

ELB Issue: BUILD FAILED

aws/aws-elastic-beanstalk-cli-setup#76 (comment)

@Kcin1993
Copy link
Author

Kcin1993 commented Oct 7, 2020

When I use eb command. It shows some like this /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory.

At first, I think it is the issue of python2. After searching lots of StackOverflow's answer, I coundn't find the solution. I try to reinstall EB CLI and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment