4.82K 浏览
0

api = TqApi() 执行后,发生以下异常信息,请问是什么情况:
环境: mac os +  pycharm + python3.7

SSL handshake failed on verifying the certificate
protocol: <asyncio.sslproto.SSLProtocol object at 0x117db2da0>
transport: <_SelectorSocketTransport fd=10 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py”, line 625, in _on_handshake_complete
raise handshake_exc
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py”, line 189, in feed_ssldata
self._sslobj.do_handshake()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py”, line 763, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
SSL error in data received

0

我在常见问题中看到有以下说明:

运行 TqSdk 的系统要求是什么?

操作系统: Windows/Linux
Python 3.6+

我在想,是不是不支持 Mac OS 系统呀?
后来,我尝试登录 centos 环境下,测试 tqsdk 是正常的。
 

您正在查看2个答案中的1个,单击此处查看所有答案。