title: Errno 13 Permission denied, in WSL, virtualenv, even as root
body: <p>I'm using Windows Subsystem for Linux, running Debian, upgraded to Buster. I configured Visual Studio Code with remote development as well. Uninstalled python2.7, and made python3 as my default by creating a symlink <code>/usr/bin/python -&gt; /usr/bin/python3</code>.</p>
  
  <p>So, in my home directory, as the current user I create a virtualenv: <code>python -m virtualenv -p python3 venv</code>, and all is fine.</p>
  
  <p>I then proceed to activate it. I use fish mostly, but this problem is also when running bash. <code>source venv/bin/activate.fish</code>. All is fine, it works.</p>
  
  <p>Then, I try to install my package <code>python setup.py install</code>, and it works fine:</p>
  
  <pre><code>running install
  running bdist_egg
  running egg_info
  writing myproj.egg-info/PKG-INFO writing dependency_links to myproj.egg-info/dependency_links.txt
  ...
  </code></pre>
  
  <p>And then it  proceeds to installing dependencies.</p>
  
  <pre><code>Reading https://pypi.org/simple/jmespath/
  Downloading https://files.pythonhosted.org/packages/83/94/7179c3832a6d45b266ddb2aac329e101367fbdb11f425f13771d27f225bb/jmespath-0.9.4-py2.py3-none-any.whl#sha256=3720a4b1bd659dd2eecad0666459b9788813e032b83e7ba58578e48254e0a0e6
  Best match: jmespath 0.9.4
  Processing jmespath-0.9.4-py2.py3-none-any.whl
  Installing jmespath-0.9.4-py2.py3-none-any.whl to /home/ap/projects/myproj/venv/lib/python3.7/site-packages
  error: [Errno 13] Permission denied: '/home/ap/projects/myproj/venv/lib/python3.7/site-packages/jmespath-0.9.4-py3.7.egg/jmespath-0.9.4.dist-info' -&gt; '/home/ap/projects/myproj/venv/lib/python3.7/site-packages/jmespath-0.9.4-py3.7.egg/EGG-INFO'
  </code></pre>
  
  <p>All directories have permissions, I'm the owner, and creating the symlink from the CLI works. I even tried to do this by first elevating permissions with <code>sudo su</code>, and still getting "Permission denied".</p>
  
  <p>I tried downgrading pip and setuptools by a major version but it didn't help. I've been doing this on Linux countless times and it all worked fine, I just don't get what might be the cause for this.</p>
  
  <p><code>pip list</code> output:</p>
  
  <pre><code>Package    Version
  ---------- -------
  pip        19.2.1
  setuptools 41.0.1
  wheel      0.33.4
  </code></pre>