PermissionError: [Errno 13] Permission denied: ‘/Users/cuixin/.cache/torch‘

Recently researched the deep-person-reid project: https://github.com/KaiyangZhou/deep-person-reid
followed the steps to set up the environment and run the error: python scripts/main.py
insert image description here
the reason is probably the permission problem.
Feasible solution: It is to modify the permissions and users of the target path, and the specific permissions are determined according to the needs of users and programs!
Use the command: sudo python scripts/main.pyand then enter the password.
insert image description here
Then you can train normally~

Guess you like

Origin blog.csdn.net/qq_34663267/article/details/126509434