skip to Main Content

Unable to write file (NoPermissions (FileSystemError): Error: EACCES: permission denied, open ‘/test.py’)

I tried to safe python file

2

Answers


    1. Check the permissions for the file or directory and make sure your user account has write access.
    2. Try saving the file to a different location where you know you have write permissions.

    I hope this helps.

    Login or Signup to reply.
  1. 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)

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search