Unable to write file (NoPermissions (FileSystemError): Error: EACCES: permission denied, open ‘/test.py’)
I tried to safe python file
Unable to write file (NoPermissions (FileSystemError): Error: EACCES: permission denied, open ‘/test.py’)
I tried to safe python file
2
Answers
I hope this helps.
It looks like you’re trying to save a file with a path called "/test.py"
I’m not sure what that would mean exactly on windows, but on linux the "/" at the start of the file path would mean that you’re trying to save the file right at the very top of the file structure, in the root directory. Apparently you don’t have the permissions to do that (which is good. It wouldn’t be a good idea to save files there)
How are you saving the file?
Try opening the File menu and selecting
Save As
. Then you can use the graphical interface to find a good place to save the file, and save it there (without the "/" at the start of the name)