带有Python的Windows Tensorflow由于权限无法读取mnist数据 [英] Windows Tensorflow with Python unable to read mnist data due to permissions
问题描述
我在Windows上使用Python,并且正在遵循Tensorflow的标准教程,该教程要求读取MNIST数据集.不幸的是,尝试运行时出现以下错误:
I'm using Python on windows and am following the standard tutorial for Tensorflow that requires reading the MNIST data set. Unfortunately I get the following error when trying to run:
PermissionError:[Errno 13]权限被拒绝: 'C:\ Users \ matth \ AppData \ Local \ Temp \ tmp6_cvro98'
PermissionError: [Errno 13] Permission denied: 'C:\Users\matth\AppData\Local\Temp\tmp6_cvro98'
程序每次运行时,末尾的文件名都会更改.有问题的代码是:
That filename at the end changes each time the program runs. The code in question is:
import tensorflow as tf
from tensorflow.contrib.learn.python.learn.datasets import mnist as input_data
mnist = input_data.read_data_sets("MNIST_data", one_hot=True)
据我所知,我以具有用户帐户完全访问权限的管理员身份运行它.不确定为什么我没有权限(或者为什么它首先需要临时数据)
As far as I'm aware I'm running it as administrator with full access privileges on the user account. Unsure why I don't have permissions (or why it requires temp data in the first place)
推荐答案
我重新安装了python,但是这次选中了针对所有用户"的框.这似乎解决了问题
I reinstalled python but this time marked the box that said 'for all users'. That seemed to solve the issue
这篇关于带有Python的Windows Tensorflow由于权限无法读取mnist数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!