How to direct directory from file to another on Mac
<p>So I am currently trying to install python3 into my Mac and whenever I type in </p>

<pre><code>which python3
</code></pre>

<p>It gives me the response of </p>

<pre><code>/usr/local/bin/python3
</code></pre>

<p>However, I want it to point to this directory below:</p>

<pre><code>/usr/local/Cellar/python3/3.5.2_2/bin/python3
</code></pre>

<p>How do I make this happen? Please Help!!</p>

<p>When you install <code>python</code> with brew, it will actually create a symlink from <code>/usr/loca/bin/...</code> to <code>/usr/loca/Cellar/...</code>. You can check this for example by running this command:</p>

<pre><code>$ ls -l /usr/local/bin/python3
lrwxr-xr-x  1 mfischer  admin  35  3 Aug 07:34 /usr/local/bin/python3 -&gt; ../Cellar/python3/3.5.1/bin/python3
</code></pre>

<p>If this is not the case, simply recreate the link.</p>

<pre><code>rm /usr/local/bin/python3
ln -s /usr/local/Cellar/python3/3.5.2_2/bin/python3 /usr/local/bin/python3
</code></pre>

python python-3.x terminal directory