Python Error

How To Fix Can’t Connect To HTTPS URL Because The SSL Module Is Not Available Error When Executing PIP Install Command In Eclipse

I want to import the python pandas module in my python source code, when I run the python source code in the Eclipse PyDev project, it shows an error on the line of the source code import pandas as pd, the error message is Unresolved import: pd. This means that the python interpreter which I …

How To Fix Can’t Connect To HTTPS URL Because The SSL Module Is Not Available Error When Executing PIP Install Command In Eclipse Read More »

How To Use User Defined Exception In Python

Python provides a lot of built-in exception classes. All the built-in classes are sub-class of builtins.BaseException class. Besides the built-in exception class, you can also create customize exception classes. But all custom exception classes must extend builtins.Exception class. The builtins.Exception class is also a sub-class of builtins.BaseException class. This example will tell you how to …

How To Use User Defined Exception In Python Read More »

How To Fix Python Error Certificate Verify Failed: Unable To Get Local Issuer Certificate In Mac OS

When I run python code in mac os, I meet a certificate verify failed error like this ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056). This error confused me a lot of time. And after googling the error, I finally find the solution to fix it, below are the steps.

Clicky