title: change the AWS CLI from 1 to 2
body: <p>When checking the AWS PATH with <code>which aws</code> when changing the AWS CLI from 1 to 2</p>
  
  <pre><code>/Users/username/.pyenv/shims/aws
  </code></pre>
  
  <p>I used to install via pyenv, but I want to remove it and install it according to system 2, but even if I try it according to the official doc, it is not changed to system 2.
  <a href="https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-mac.html" rel="noreferrer">https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-mac.html</a></p>
  
  <pre><code>curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
  sudo installer -pkg AWSCLIV2.pkg -target /
  </code></pre>
  
  <p>It did not change to the 2 system even if I typed this command.</p>
  
  <p>I've also tried uninstalling the AWS CLI, but it doesn't work.
  Does anyone know of any way to do this?</p>
  
  <p>thank you</p>