I get this error:
Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: /home/yosr
In Windows 10, 1. Find the location of certifi with following commands to check if installed already
import certifi
certifi.where()
Note down the path of cacert.pem file
Search for the pip.ini file in windows explorer and edit the file in notepad and set the path = <file path of cacert.pem >
You need to allow pip to reference to the correct certificate. check the certificate first;
python -c "import certifi; print(certifi.where())"
Then first test it manually;
pip install -r requirements.txt --cert=<the above certificate path>
If that works fine, then update this path on pip.conf file located at $HOME/.pip/pip.conf (or %APPDATA%\pip\pip.ini on Windows). e.g.
[global]
cert = /usr/local/share/ca-certificate/mycert.crt
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