title: "pre-commit" command is not found by bash but is installed on macOS
body: <h2>Problem Description</h2>
  <p>I'm having trouble making commits, when I try to make a commit with the command, for example:</p>
  <pre><code>$ git commit -m &quot;add readme&quot;
  pre-commit not found. Install pre-commit with the command pip3 install --user pre-commit or follow the steps on official documentation: https://pre-commit.com /#install
  </code></pre>
  <p>Following the steps described in the pre-commit installation documentation I installed by the command:</p>
  <pre><code>$ pip install pre-commit
  </code></pre>
  <p>However when I trigger the command the following error occurs:</p>
  <pre><code>$ pre-commit --version
  bash: pre-commit: command not found
  </code></pre>
  <h2>My attempt fails</h2>
  <p>I've tried some other solutions for this but they didn't work:</p>
  <h3>Export bash</h3>
  <p>I already tried <a href="https://stackoverflow.com/a/26020688/11111289">this solution</a> described that would be to export my <code>~./bashrc</code> with the command: <code>source ~/.profile</code> but the following error happens:</p>
  <pre><code>bash:/Users/pvieira/.profile: No such file or directory
  </code></pre>
  <h3>Install using homebrew</h3>
  <p>Doing so the same error that occurs when installing by <code>pip</code> appears here.</p>