ValueError: do_handshake_on_connect should not be specified for non-blocking sockets
生活随笔
收集整理的這篇文章主要介紹了
ValueError: do_handshake_on_connect should not be specified for non-blocking sockets
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
ValueError: do_handshake_on_connect should not be specified for non-blocking sockets
解決方案:
pip install requests[security](你沒看錯,就是這樣,這里直接抄寫,不用改)
然后代碼中加入:
from gevent import monkey monkey.patch_socket() monkey.patch_ssl()
總結(jié)
以上是生活随笔為你收集整理的ValueError: do_handshake_on_connect should not be specified for non-blocking sockets的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Cannot check for MyS
- 下一篇: 《Flask Web开发——基于Pyth