Running "python3 setup.py bdist_wheel" on a /mnt/c/... path results in a "Errno 13 Permission Denied" error

Solution 1:

I had it pass by specifying a temporary directory that is not under /mnt/c.

One can use the following:

python3 setup.py bdist_wheel --bdist-dir ~/temp/bdistwheel

Solution 2:

Turns out the answer was already out there: https://github.com/pypa/packaging-problems/issues/258#issuecomment-514934944

The issue is resolved by granting "Full control" to "Authenticated Users" in the Windows File settings for the folder that one is trying to work on through WSL.

enter image description here