Mac下VSCode调试python报错:certificate verify failed: unable to get local issuer certificate

1、退出VSCode;

2、在finder中输入Install Certificates.command,然后自动安完证书;

3、启动vscode,重新调试,正常了。