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

前端 未结 3 1639
太阳男子
太阳男子 2021-01-03 15:38

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

3条回答
  •  天命终不由人
    2021-01-03 16:17

    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
    

提交回复
热议问题