title: Pip cannot find metadata file - EnvironmentError
body: <p>Whenever I run <code>pip</code> to install the Flask packages like <code>virtualenv</code> in Ubuntu 16.04, I get this error:</p>
  
  <p><code>pip install virtualenv</code></p>
  
  <p><code>Requirement already satisfied: virtualenv in ./.local/lib/python3.5/site-packages (16.1.0)
  No metadata found in ./.local/lib/python3.5/site-packages
  Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/usr/.local/lib/python3.5/site-packages/virtualenv-16.1.0.dist-info/METADATA'</code></p>
  
  <p>Here are my pip and python versions:</p>
  
  <p><code>pip --version
  pip 19.0.1 from /usr/.local/lib/python3.5/site-packages/pip (python 3.5)</code></p>
  
  <p><code>python3 --version
  Python 3.6.8</code></p>
  
  <p>I already tried almost all that I get from the internet to solve this issue like:</p>
  
  <p><code>/usr/.local/bin/pip install virtualenv</code></p>
  
  <p>But I still get the same error.</p>
  
  <p>I also go into the dist folder to copy the metadata.json with METADATA, but there's no metadata.json file inside.</p>
  
  <p><code>cd /usr/.local/lib/python3.5/site-packages/virtualenv-16.1.0.dist-info/
  </code>
  <code>cp metadata.json METADATA</code></p>
  
  <p><code>cp: cannot stat 'metadata.json': No such file or directory</code></p>
  
  <p>Please help me, I'm stucked with this issue for days. 
  Thanks!</p>