DataSEA- Data Science, Engineering, Analytics

  # DataSEA: The Gamified Mobile App to Learn Data Engineering, SQL, and Analytics in 10 Minutes a Day                                                                                                                                                                                                             > **TL;DR** — DataSEA is a free Android app that turns Data Engineering, Analytics, and Data Science into bite-size, gamified lessons. 88+ modules,     500+ lessons,...

Resolve SSL Certificate issue while pip install in Python

 

  • SSL Certificate issue in python pip

    If you are facing issues while installing pip packages,

    $ pip install pandas

    To resolve it, we need to set the certificate path.

    1. Find the Cert path.

    2. Set the cert path.

    3. Run pip install


    In MacBook:

    Find the ssl Path first:

    Run this command in terminal 

    $ python -c "import ssl; print(ssl.get_default_verify_paths())"

    OR

    $ python3 -c "import ssl; print(ssl.get_default_verify_paths())"

    It will give output something like this

    DefaultVerifyPaths(cafile='/opt/homebrew/etc/openssl@3/cert.pem', capath='/opt/homebrew/etc/openssl@3/certs', openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/opt/homebrew/etc/openssl@3/cert.pem', openssl_capath_env='SSL_CERT_DIR', openssl_capath='/opt/homebrew/etc/openssl@3/certs')


    Now set this path before running pip command,
    Run this in your terminal:
    $ export REQUESTS_CA_BUNDLE="/opt/homebrew/etc/openssl@3/cert.pem"


    You can set this path in your zhrc or basic file.

    $ vim ~/.zshrc

    export REQUESTS_CA_BUNDLE="/opt/homebrew/etc/openssl@3/cert.pem"

    :wq


    Note-Use path which you get in the output above.


Comments

Popular posts from this blog

Bhakti-Aarti- Android app Privacy policy

DBT tool connect Athena from Local- AWS SSO

AWS Lake formation - AWS LF - Governance Security- Access control