title: Uninstalling python3 on MacOs
body: <p>I have uninstalled python3 using brew on macOS Catalina 10.15.3:</p>
  
  <pre><code>brew uninstall python3
  
  brew list | grep python
  python@2
  </code></pre>
  
  <p>But it still there:</p>
  
  <pre><code>which python3
  /usr/bin/python3
  
  python3 -V
  Python 3.7.3
  
  /usr/bin/python3 -V
  Python 3.7.3
  
  ls -ltah /usr/bin/ | grep python
  
  -rwxr-xr-x     1 root   wheel    31K Jan 23 16:58 python3
  lrwxr-xr-x     1 root   wheel    75B Dec 16 06:20 python2.7 -&gt; ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
  lrwxr-xr-x     1 root   wheel    82B Dec 16 06:20 python-config -&gt; ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
  lrwxr-xr-x     1 root   wheel    76B Dec 16 06:20 pythonw2.7 -&gt; ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
  lrwxr-xr-x     1 root   wheel    82B Dec 16 06:20 python2.7-config -&gt; ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
  lrwxr-xr-x     1 root   wheel    76B Dec 16 06:20 pythonw -&gt; ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
  lrwxr-xr-x     1 root   wheel    75B Dec 16 06:20 python2 -&gt; ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
  lrwxr-xr-x     1 root   wheel    75B Dec 16 06:20 python -&gt; ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
  </code></pre>
  
  <p>It's interesting but on error it shows different location of python:</p>
  
  <pre><code>python3 -bla
  
  Unknown option: -l
  usage: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python [option] ... [-c cmd | -m mod | file | -] [arg] ...
  Try `python -h' for more information.
  </code></pre>
  
  <p>Seems it's related to Xcode.</p>
  
  <p>How to delete this version python3 and reinstall python using brew?</p>
  
  <p><strong>Update:</strong></p>
  
  <pre><code>sudo rm -f /usr/bin/python3
  rm: /usr/bin/python3: Operation not permitted
  </code></pre>