Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

579
Views
Unable to (manually) load cifar10 dataset

First, I tried to load using:

(X_train, y_train), (X_test, y_test) = datasets.cifar10.load_data()

But it gave an error:

Exception: URL fetch failure on https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1125)

So I manually downloaded the dataset and put it in C:\Users\SAHAN\.keras\datasets and renamed it to cifar-10-batches-py.tar.gz.

But then it gives an error:

PermissionError: [Errno 13] Permission denied: 'C:\\Users\\SAHAN\\.keras\\datasets\\cifar-10-batches-py.tar.gz'

How can I load this dataset?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I was having a similar CERTIFICATE_VERIFY_FAILED error downloading CIFAR-10. Putting this in my python file worked:

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

Reference: https://programmerah.com/python-error-certificate-verify-failed-certificate-has-expired-40374/

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!