title: How Can I upgrade my python3 version from 3.5.2 to 3.7 in AWS EC2 ubuntu instance?
body: <p>How Can I upgrade my python3 version from 3.5.2 to 3.7 in AWS EC2 ubuntu instance?</p>
  <p>i am getting <strong>ImportError: No module named 'secrets'</strong> error while trying to runserver using command <em>python3 manage.py runserver</em>. I read somewhere that secrets are not supported in python3 version 3.5, and it works for only higher versions. My python version is 3.5.2. I want to upgrade the version.</p>
  <p>I tried <strong>sudo apt-get install python3.7</strong>, but its not working:</p>
  <pre><code>Building dependency tree Reading state information... Done 
  E: Unable to locate package python3.7 
  E: Couldn't find any package by glob 'python3.7'
  E: Couldn't find any package by regex 'python3.7'
  </code></pre>
  <p>Then I tried <strong>sudo update-alternatives --config python3</strong>, this is also not working</p>
  <pre><code>update-alternatives: error: no alternatives for python3
  </code></pre>