title: Install packages for Python 3.9 on Ubuntu 22.04
body: <p>I'm using Ubuntu 22.04 LTS, after the update, the default python changed to Python  3.10. However, most of the libraries I'm currently using are only available on 3.9.</p>
  <p>when I try to install packages by</p>
  <p><code>pip install mypackage</code></p>
  <p>it is by default installed for python 3.10,  V3.9 by</p>
  <pre><code>python3.9 -m pip install mypackage
  </code></pre>
  <p>I'm getting the following error,</p>
  <pre><code>from distutils.cmd import Command as DistutilsCommand
  ModuleNotFoundError: No module named 'distutils.cmd'
  </code></pre>
  <p>It is essential that I should be able to install these modules for Python3.9. I tried to achieve the same by installing a Virtual environment using Pycharm and even inside this VE I'm getting this 'distutil' error. How can we fix this?</p>