title: Python3, gcc and clang on MacOS
body: <p>I am trying to make a Python script on my Mac (MacOS 10.14.6 Mojave) and I am getting trouble with installing a module (watchdog). I have the built-in Python 2 and I installed Python 3 with Homebrew. </p>
  
  <p>If a type in the terminal <code>python</code>, I get:</p>
  
  <pre><code>Python 2.7.16 (default, Oct 16 2019, 00:34:56) 
  [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  </code></pre>
  
  <p>So Python 2 correctly uses GCC (the one provided by Apple? I am not sure) instead of Clang. Now, if I do <code>python -m pip install watchdog</code> it just works. But I want to install the module on Python 3, that for some reason uses Clang instead of GCC. In fact, if I type `python3', I get:</p>
  
  <pre><code>Python 3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019, 10:23:27) 
  [Clang 6.0 (clang-600.0.57)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  </code></pre>
  
  <p>I assume that as a consequence <code>python3 -m pip install watchdog</code> gives a compile error because Python 3 is not using GCC. The error message is very long and can be found here: <a href="https://pastebin.com/DEAKANQ9" rel="nofollow noreferrer">https://pastebin.com/DEAKANQ9</a></p>
  
  <p>In my $PATH I have <code>/usr/local/bin</code> (where <code>gcc</code> is installed) before <code>/usr/bin</code>, i.e.</p>
  
  <pre><code>echo $PATH
  /Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin
  </code></pre>
  
  <p>I would say everything is set up correctly, but apparently that is not the case. How can I make Python 3 use GCC instead of Clang? </p>