Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm error: [Errno 13] Permission denied

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

enter image description here

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.

like image 239
Sundaravelpandian Singaravel Avatar asked Sep 23 '16 10:09

Sundaravelpandian Singaravel


People also ask

How to solve Permission denied in PyCharm?

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.

How do I fix errno 13 Permission denied in Python?

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 .


2 Answers

It looks like you need to give your interpretter root permissions. There is a tutorial here on how to do this

like image 91
user3684792 Avatar answered Nov 09 '22 06:11

user3684792


Try to remove the shebang if you have it in your code and then try to run it......BTW this Worked for me.

like image 38
Pranav Nagvekar Avatar answered Nov 09 '22 06:11

Pranav Nagvekar