title: How do I fix "dyld: Library not loaded" if I installed the AWS CLI with pip3?
body: <p>I am trying to deploy a lambda with the AWS CLI. It was working a few months ago but now it's not. </p>
  
  <p>Followed these instructions to install the CLI: <a href="https://docs.aws.amazon.com/cli/latest/userguide/install-macos.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/cli/latest/userguide/install-macos.html</a></p>
  
  <p>Results: </p>
  
  <pre><code>➜  lambda git:(master) ✗ pip3 install awscli --upgrade --user
  Requirement already up-to-date: awscli in /Users/justin/Library/Python/3.7/lib/python/site-packages (1.16.310)
  [... and so on, it's already installed] 
  
  ➜  lambda git:(master) ✗ brew uninstall awscli
  Error: No such keg: /usr/local/Cellar/awscli
  
  ➜  lambda git:(master) ✗ python --version
  Python 2.7.17
  
  ➜  lambda git:(master) ✗ pip3 --version
  pip 19.3.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
  
  ➜  lambda git:(master) ✗ python3 --version
  Python 3.7.6
  
  ➜  lambda git:(master) ✗ aws --version
  dyld: Library not loaded: @executable_path/../.Python
    Referenced from: /usr/local/aws/bin/python2.7
    Reason: image not found
  [1]    42316 abort      aws --version
  </code></pre>
  
  <p>Clearly something is borked with my Python install. I've been messing around with this for close  to 45 minutes now (reinstalling everything mostly and trying some posts <a href="https://stackoverflow.com/questions/47629570/how-to-resolve-dyld-library-not-loaded-executable-path-error">like this one</a>) but I'm no closer to solving it than I was when I started. </p>