7

I'm trying to build a bdist package of my python app but the command python3 setup.py bdist_wheel fails with error Errno 13: Permission Denied when is launched from a subfolder of /mnt/c/. The same command (with the same set of sources) launched from a subfolder of /home/<username> succeeds. This happens only for the bdist_wheel parameter; with the sdist parameter all goes fine. Any idea?

2
  • Did you find any solution ? I'm facing the same issue here
    – Loul G.
    Jun 5, 2019 at 9:03
  • Running into the same issue - anyone have an idea why this happens?
    – Alexander
    Dec 5, 2020 at 15:36

2 Answers 2

6
+50

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
1
  • Is there a way to specify this option when calling pip?
    – jan-glx
    Oct 4, 2022 at 15:43
5

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .