Errno 13 Permission denied: '/files' while trying to execute pytorch script

问题描述 投票:0回答:0

我正在尝试执行简单的 pytorch 命令来下载 MNIST 数据集 script 它在第 23 行引发了权限错误。 Error and permissions

由于我使用的是最新稳定版的 Ubuntu,因此我已授予此 py 文件/此 python 文件的父级权限:

sudo chmod -R 777 [path]
sudo chmod a+rwx [parent_dir_path]

我还尝试授予对 python3.10/site-packages 文件夹(尤其是 torch 和 torchvision)的权限。但他们都没有工作。

permissions torch torchvision ubuntu-22.04 pytorch-dataloader
© www.soinside.com 2019 - 2024. All rights reserved.