-->

Windows Tensorflow with Python unable to read mnis

2019-08-02 01:37发布

问题:

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] 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)

回答1:

I reinstalled python but this time marked the box that said 'for all users'. That seemed to solve the issue