title: How to change the default python version in Raspberry Pi
body: <p>One day ago I did a fresh installation of Raspberry Pi OS Buster and after that I installed Python3.8 in my Raspberry pi following this tutorial.
  <a href="https://installvirtual.com/how-to-install-python-3-8-on-raspberry-pi-raspbian/" rel="noreferrer">https://installvirtual.com/how-to-install-python-3-8-on-raspberry-pi-raspbian/</a></p>
  
  <p>I added python alias to bashrc.</p>
  
  <pre><code>echo "alias python=/usr/local/bin/python3.8" &gt;&gt; ~/.bashrc
  source ~/.bashrc
  </code></pre>
  
  <p>Now typing <code>python</code> in terminal showing  <code>Python 3.8.0 (default, Jun  8 2020, 13:17:16)</code> </p>
  
  <p>But when I run python3 it's showing Python <strong><code>Python 3.7.3</code></strong></p>
  
  <p>I added python3 alias pointing to python3.8 follwing above commands but still no luck.
  Programs from Geany still showing 3.7. I changed Geany's bulid commands to python(as I set default python to 3.8)</p>
  
  <pre><code>#!/usr/local/bin/python3.8
  
  import sys
  print("Python version")
  print (sys.version)
  </code></pre>
  
  <blockquote>
    <p>Python version
    3.7.3 (default, Dec 20 2019, 18:57:59)</p>
  </blockquote>
  
  <p>I have two questions:</p>
  
  <ol>
  <li><p>How to run programs in Python3.8? </p></li>
  <li><p>Can I uninstall python3.7?</p></li>
  </ol>