python zscaler 证书配置
02 June 2025
python zscaler 证书配置
Option 1: Change global.cert option in command line
For example:
% pip3 config set global.cert /etc/ssl/cert.pem
Option 2: Add –cert option For example:
% pip3 install -I pandas --cert /etc/ssl/cert.pem
% conda config --set ssl_verify /etc/ssl/cert.pem
If not working by option1 and option2, pls run below command by ignore the alert of ssl
pip3 install requests --trusted-host pypi.org --trusted-host files.pythonhosted.org
若以上配置后,执行 python 还有 ssl port=443 错误,则参考:Adding Custom Certificate to an Application Specific Trust Store
如 python requests ssl 443 报错解决,执行如下命令:
echo "export REQUESTS_CA_BUNDLE=/etc/ssl/cert.pem" >> $HOME/.bash_profile
source $HOME/.bash_profile
重启 jupyter notebook,测试用 transformers pipeline 加载默认model ok
