title: How to fix "module 'platform' has no attribute 'linux_distribution'" when installing new packages with Python3.8?
body: <p>I had Python versions of 2.7 and 3.5. I wanted the install a newer version of Python which is python 3.8. I am using Ubuntu 16.04 and I can not just uninstall Python 3.5 due to the dependencies. So in order to run my scripts, I use <code>python3.8 app.py</code>. No problem so far. But when I want to install new packages via pip:</p>
  
  <pre><code>python3.8 -m pip install pylint
  </code></pre>
  
  <p>It throws an error:</p>
  
  <pre><code>AttributeError: module 'platform' has no attribute 'linux_distribution'
  </code></pre>
  
  <p>So far, I tried:</p>
  
  <pre><code>sudo update-alternatives --config python3
  </code></pre>
  
  <p>and chose python3.8 and run command by starting with python3 but no luck.</p>
  
  <p>Then:</p>
  
  <pre><code>sudo ln -sf /usr/bin/python3.5 /usr/bin/python3
  </code></pre>
  
  <p>I also tried running the command by starting with python3 but it did not work either.</p>
  
  <p>How can I fix it so that I can install new packages to my new version of Python?</p>