title: pkg_resources not found while installing java on Mac
body: <p><code>Traceback (most recent call last):
    File "/usr/bin/xattr-2.7", line 7, in &lt;module&gt;
      from pkg_resources import load_entry_point
  ImportError: No module named pkg_resources</code></p>
  
  <p>My <code>PYTHONPATH</code> contains <code>/usr/local/lib/python3.7/site-packages</code>, the site-packages folder indeed contains the <code>pkg_resources</code> folder. I tried everything and have spent hours searching stack overflow. I even reinstalled python and setuptools, but nothing seems to work.</p>
  
  <p>The command I am using to install Java - <code>brew cask install java</code></p>