【问题标题】:“SSL: CERTIFICATE_VERIFY_FAILED” Error on mac“SSL:CERTIFICATE_VERIFY_FAILED”Mac 上的错误
【发布时间】:2017-10-30 21:09:32
【问题描述】:

我曾想解决 [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)

【问题讨论】:

    标签: python macos pandas


    【解决方案1】:

    今天我已经安装了 Python3.8.3 和 frida-tools,我想我也遇到了同样的问题。

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

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

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

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 2015-03-06
      • 1970-01-01
      • 2021-06-12
      • 1970-01-01
      • 2021-01-26
      相关资源
      最近更新 更多