I am using PyCharm for executing my Python programs. Today, I had tried updating all the packages using Project Interpreter. I received the following error in the process:
error: [Errno 13] Permission denied
After which none of my Python libraries are shown in Project Interpreter list.
I am using PyCharm Community Edition 2016.2.3 in Mac OS X 10.11.6.
The PermissionError: [errno 13] permission denied error occurs when you try to access a file from Python without having the necessary permissions. To fix this error, use the chmod or chown command to change the permissions of the file so that the right user and/or group can access the file.
We can solve this error by Providing the right permissions to the file using chown or chmod commands and also ensuring Python is running in the elevated mode permission .
It looks like you need to give your interpretter root permissions. There is a tutorial here on how to do this
Try to remove the shebang if you have it in your code and then try to run it......BTW this Worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With