在Mac上出现"SSL:CERTIFICATE_VERIFY_FAILED"错误 [英] “SSL: CERTIFICATE_VERIFY_FAILED” Error on mac
问题描述
我本想解决[SSL:CERTIFICATE_VERIFY_FAILED]问题, 因为我使用mac和python 3,所以很多人说我应该运行/Applications/Python \ 3.6/Install \ Certificates.command
I had wanted to solve the [SSL: CERTIFICATE_VERIFY_FAILED] problem, because i use mac and python 3,a lot of guys said i should run /Applications/Python\ 3.6/Install\ Certificates.command
但是在我运行certificate.command之后,我似乎无法正常工作,终端告诉了我很多错误
but after i run the certificates.command, i seemed not work, terminal told me a lot of errors
[SSL:CERTIFICATE_VERIFY_FAILED]的问题未解决,我怀疑证书未正确安装
and the problem of [SSL: CERTIFICATE_VERIFY_FAILED] isn't solved, i suspect maybe certificates wasn't installed properly
但是我检查了点子列表,certifi是最新的类型,谁可以帮助我?
but i check pip list, certifi is the newest type, who can help me?
终端信息为:
Traceback (most recent call last):
File "<stdin>", line 44, in <module>
File "<stdin>", line 25, in main
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6', '-E', '-s', '-m', 'pip', 'install', '--upgrade', 'certifi']' returned non-zero exit status 1.
我的原始程序是:
import pandas as pd
states = pd.read_html('https://simple.wikipedia.org/wiki/List_of_U.S._states')
print(states)
推荐答案
今天,我已经安装了Python3.8.3和frida-tools,我想我也遇到了同样的问题.
Today I have installed Python3.8.3 and frida-tools, and I think I just had met the same problem.
[问题] 在我通过双击安装程序python **.pkg安装Python3.8.3之后,当我尝试"pip install frida-tools"时,它显示为找不到命令:pip".然后我尝试了"pip3.8 install frida-tools",它出现了错误:命令错误,退出状态为1:*****错误:< urlopen错误[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败:无法获取本地发行者证书(_ssl.c:1108)>"
[Problem] After I installed Python3.8.3 by double click the installer python**.pkg, when I tried 'pip install frida-tools", it went "command not found: pip". Then I tried "pip3.8 install frida-tools", it went "ERROR: Command errored out with exit status 1: ***** error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>"
[如何解决] 打开查找程序,转到/applications/python */,双击外壳程序"Install Certificates.command"
[How to solve] Open finder, go to /applications/python */, double click the shell "Install Certificates.command"
[结果] 之后,我通常通过"pip install frida-tools"
[Result] After that I have install frida-tools normally by "pip install frida-tools"
我希望这可以为您提供帮助.
I hope this can help you.
这篇关于在Mac上出现"SSL:CERTIFICATE_VERIFY_FAILED"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!