Mac 上出现“SSL: CERTIFICATE_VERIFY_FAILED”错误

2024-04-15

我本来想解决 [SSL: CERTIFICATE_VERIFY_FAILED] 问题, 因为我使用 mac 和 python 3,很多人说我应该运行 /Applications/Python\ 3.6/Install\ Certificates.command

但是在我运行certificates.command之后,我似乎不起作用,终端告诉我很多错误

并且 [SSL: CERTIFICATE_VERIFY_FAILED] 的问题没有解决,我怀疑可能证书没有正确安装

但我检查了 pip list,certifi 是最新类型,谁能帮助我?

终端信息为:

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,我想我刚刚遇到了同样的问题。

[问题] 在我通过双击安装程序 python**.pkg 安装了 Python3.8.3 后,当我尝试“pip install frida-tools”时,它出现“command not find: pip”。然后我尝试了“pip3.8 install frida-tools” ,它变成“错误:命令错误,退出状态 1:***** 错误:

[怎么解决] 打开finder,进入/applications/python */,双击shell“Install Certificates.command”

[结果] 之后我通过“pip install frida-tools”正常安装 frida-tools

我希望这可以帮助你。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Mac 上出现“SSL: CERTIFICATE_VERIFY_FAILED”错误 的相关文章

随机推荐