close

[Solved] Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path Error Occurs?

Today I get the following error Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path in python.

How To Solve Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path Error ?

  1. How To Solve Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path Error ?

    To Solve Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path Error In Windows 10, 1. Find the location of certifi with following commands to check if installed already

  2. Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path

    To Solve Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path Error In Windows 10, 1. Find the location of certifi with following commands to check if installed already

Solution 1

If you’re on Mac (mine is 10.13.6), use the following command:

(security find-certificate -a -p ls /System/Library/Keychains/SystemRootCertificates.keychain &&        security find-certificate -a -p ls /Library/Keychains/System.keychain) > $HOME/.mac-ca-roots

Then do modify .bashrc with

export REQUESTS_CA_BUNDLE="$HOME/.mac-ca-roots"

Then do

$ source ~/.bashrc

Solution 2

In Windows 10, 1. Find the location of certifi with following commands to check if installed already

import certifi
certifi.where()
  1. Note down the path of cacert.pem file
  2. Search for the pip.ini file in windows explorer and edit the file in notepad and set the path = <file path of cacert.pem >

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read