Windows Tensorflow with Python unable to read mnist data due to permissions

拥有回忆 提交于 2019-12-11 05:55:27

问题


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



来源:https://stackoverflow.com/questions/41076047/windows-tensorflow-with-python-unable-to-read-mnist-data-due-to-permissions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!