When I tried to execute the code below in Jupiter notebook, I got a permission denied error on line 14.What should I do if there is nothing that makes sense when I look into it?
import gzip
file=[
"train-images-idx3-ubyte.gz",
"train-labels-idx1-ubyte.gz",
"t10k-images-idx3-ubyte.gz",
"t10k-labels-idx1-ubyte.gz"
]
For fin file:
raw_file="/"+f.replace(".gz", "")
with gzip.open(f, "rb") as gz:
body=gz.read()
with open(raw_file, "wb") as raw_w:
raw_w.write(body)
I noticed that the relative directory specification was incorrect in the comment.
./ or the file name was all I needed.
768 GDB gets version error when attempting to debug with the Presense SDK (IDE)
765 M2 Mac fails to install rbenv install 3.1.3 due to errors
1225 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
845 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2025 OneMinuteCode. All rights reserved.