I pip installed Tensor Flow so I don't have tensorflow.examples so I got the souce input_data from GitHub. How ever I am getting the following error.
PermissionError: [Errno 13] Permission denied: 'C:\Users\Nikhil\AppData\Local\Temp\tmp5gr8f26y'
This is my code.
import input_data mnist = input_data.read_data_sets("/MNIST_data/", one_hot = True)
How do I solve this problem? There is another thread dealing with the exact same issue but that solution did not solve my problem. What should I do now? The input_data.py file is in my projects's directory. My project directory looks like this.
tensor_flow | tf.py input_data.py
I have tried and exhausted all means described in Stack Overflow. Please do not indicate duplicates.
runfile('C:/Users/Nikhil/Desktop/Tensor Flow/tensf.py', wdir='C:/Users/Nikhil/Desktop/Tensor Flow') Traceback (most recent call last):
File "", line 1, in runfile('C:/Users/Nikhil/Desktop/Tensor Flow/tensf.py', wdir='C:/Users/Nikhil/Desktop/Tensor Flow')
File "C:\Users\Nikhil\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile execfile(filename, namespace)
File "C:\Users\Nikhil\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Nikhil/Desktop/Tensor Flow/tensf.py", line 26, in mnist = input_data.read_data_sets("MNIST_data/", one_hot = True)
File "C:\Users\Nikhil\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py", line 211, in read_data_sets SOURCE_URL + TRAIN_IMAGES)
File "C:\Users\Nikhil\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 141, in maybe_download urllib.request.urlretrieve(source_url, temp_file_name)
File "C:\Users\Nikhil\Anaconda3\lib\urllib\request.py", line 198, in urlretrieve tfp = open(filename, 'wb')
PermissionError: [Errno 13] Permission denied: 'C:\Users\Nikhil\AppData\Local\Temp\tmpry0jmpiu'