title: ModuleNotFoundError: No module named 'importlib_metadata' while installing pint in python
body: <p>I have tried installing pint using pip. But whenever I am trying, I am getting <code>ModuleNotFoundError: No module named 'importlib_metadata'</code>.</p>
  <p>Traceback:</p>
  <pre><code>ModuleNotFoundError                       Traceback (most recent call last)
  C:\ProgramData\Anaconda3\lib\site-packages\pint\__init__.py in &lt;module&gt;
       32 try:
  ---&gt; 33     from importlib.metadata import version
       34 except ImportError:
  
  ModuleNotFoundError: No module named 'importlib.metadata'
  
  During handling of the above exception, another exception occurred:
  
  ModuleNotFoundError                       Traceback (most recent call last)
  ~\AppData\Local\Temp/ipykernel_31716/1730524550.py in &lt;module&gt;
        9 
       10 # import units
  ---&gt; 11 from pint import UnitRegistry
       12 units = UnitRegistry()
  
  C:\ProgramData\Anaconda3\lib\site-packages\pint\__init__.py in &lt;module&gt;
       34 except ImportError:
       35     # Backport for Python &lt; 3.8
  ---&gt; 36     from importlib_metadata import version
       37 
       38 try:  # pragma: no cover
  
  ModuleNotFoundError: No module named 'importlib_metadata'
  </code></pre>
  <p>What should I do?</p>