<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>OSX Tweaks on D. Sébastien Taggart</title>
    <link>https://www.sebastientaggart.com/tags/osx-tweaks/</link>
    <description>Recent content in OSX Tweaks on D. Sébastien Taggart</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 04 Oct 2026 22:13:05 -0400</lastBuildDate>
    <atom:link href="https://www.sebastientaggart.com/tags/osx-tweaks/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Install Python with Brew on macOS</title>
      <link>https://www.sebastientaggart.com/writing/install-python-with-brew-in-mac-osx/</link>
      <pubDate>Fri, 30 Aug 2019 14:40:05 -0500</pubDate>
      <guid>https://www.sebastientaggart.com/writing/install-python-with-brew-in-mac-osx/</guid>
      <description>&lt;p&gt;Installing Python on macOS can be a bit of a journey, especially since the operating system comes pre-installed with an older version. Thankfully, Homebrew, a popular package manager for macOS, makes it straightforward to get the latest version of Python. Let&amp;rsquo;s walk through the steps together.&lt;/p&gt;
&lt;h3 id=&#34;why-upgrade-your-python&#34;&gt;Why Upgrade Your Python?&lt;/h3&gt;
&lt;p&gt;Upgrading to a newer version of Python is essential for several reasons. Not only does it provide you with access to the latest features and security updates, but it also ensures compatibility with modern libraries and frameworks. In a world where technology evolves rapidly, staying current is not just a nice-to-have—it&amp;rsquo;s a necessity.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Installing Python on macOS can be a bit of a journey, especially since the operating system comes pre-installed with an older version. Thankfully, Homebrew, a popular package manager for macOS, makes it straightforward to get the latest version of Python. Let&rsquo;s walk through the steps together.</p>
<h3 id="why-upgrade-your-python">Why Upgrade Your Python?</h3>
<p>Upgrading to a newer version of Python is essential for several reasons. Not only does it provide you with access to the latest features and security updates, but it also ensures compatibility with modern libraries and frameworks. In a world where technology evolves rapidly, staying current is not just a nice-to-have—it&rsquo;s a necessity.</p>
<h3 id="getting-started-with-homebrew">Getting Started with Homebrew</h3>
<p>First, if you haven&rsquo;t already, you&rsquo;ll want to install Homebrew. It’s a simple and powerful way to manage software on your Mac. If Homebrew isn&rsquo;t on your system yet, you can install it by running this command in your terminal:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">/bin/bash -c <span class="s2">&#34;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh<span class="k">)</span><span class="s2">&#34;</span>
</span></span></code></pre></div><p>Once Homebrew is ready, installing Python is a breeze. Just run:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">brew install python
</span></span></code></pre></div><h3 id="accessing-your-new-python-installation">Accessing Your New Python Installation</h3>
<p>After the installation, you’ll have both the older version of Python and the newer version side by side. To check which version you have, run:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">python --version
</span></span></code></pre></div><p>You might see something like:</p>
<pre tabindex="0"><code>Python 2.7.16 # &lt;- This is the old macOS version!
</code></pre><p>Now, let’s take a look at the version you just installed:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">python3 --version
</span></span></code></pre></div><p>You should see:</p>
<pre tabindex="0"><code>Python 3.7.4 # &lt;- This is the version we want
</code></pre><h3 id="using-the-right-package-installer">Using the Right Package Installer</h3>
<p>When working with Python, you&rsquo;ll also want to use the corresponding package installer. Instead of using <code>pip</code>, which is linked to the older version, you&rsquo;ll want to use <code>pip3</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip --version
</span></span></code></pre></div><p>This command will likely show:</p>
<pre tabindex="0"><code>pip 19.1.1 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
</code></pre><p>Now, let&rsquo;s check <code>pip3</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip3 --version
</span></span></code></pre></div><p>You should see:</p>
<pre tabindex="0"><code>pip 19.1.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
</code></pre><h3 id="updating-your-path-for-convenience">Updating Your PATH for Convenience</h3>
<p>To make your life easier, you may want to add Python 3.7 to your system&rsquo;s PATH. This way, you can call it with just <code>python</code> instead of <code>python3</code>. Open your terminal&rsquo;s configuration file, which could be either <code>~/.zshrc</code> or <code>~/.bash_profile</code>, and add the following line:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span><span class="s2">&#34;/usr/local/opt/python/libexec/bin:</span><span class="nv">$PATH</span><span class="s2">&#34;</span>
</span></span></code></pre></div><p>If you’re coming from a bash environment, you may need to adjust your PATH accordingly to avoid conflicts.</p>
<h3 id="final-thoughts">Final Thoughts</h3>
<p>After adding the necessary lines, simply restart your terminal or run <code>source ~/.zshrc</code> (or <code>source ~/.bash_profile</code>) to apply the changes. Now, when you type <code>python</code>, it should invoke the newer version by default.</p>
<p>In summary, upgrading Python on macOS through Homebrew is not just a technical necessity; it’s a step toward ensuring you have the right tools for modern development. Remember, clarity in your environment leads to clarity in your code. Happy coding!</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
