title: How do I uninstall python3.6 on ubuntu when it is located on /usr/local/bin/python3.6
body: <p>So my default version of python3 is 3.7.5</p>
  
  <pre><code>which python3
  
  /usr/bin/python3
  </code></pre>
  
  <p>Now my python3.6 is installed in:</p>
  
  <pre><code>which python3.6
  
  /usr/local/bin/python3.6
  </code></pre>
  
  <p>If I try to uninstall it like so:</p>
  
  <pre><code>sudo apt-get remove --purge python3.6
  
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Note, selecting 'python3.6-2to3' for regex 'python3.6'
  Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'
  Note, selecting 'python3.6-rpy2' for regex 'python3.6'
  Package 'libpython3.6-stdlib' is not installed, so not removed
  Package 'python3.6-2to3' is not installed, so not removed
  0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
  </code></pre>
  
  <p>And if like so:</p>
  
  <pre><code>sudo apt-get remove --purge /usr/local/bin/python3.6
  
  Reading package lists... Done
  E: Unsupported file /usr/local/bin/python3.6 given on commandline
  </code></pre>