泡泡乌龙学习中

 

2022年7月28日

greenlet.error: cannot switch to a different thread如何解决

摘要: python使用Flask框架时,出现cannot switch to a different thread的问题 原因貌似是gevent的协程与Flask线程存在冲突,具体没有细查,感兴趣的小伙伴可以去查一下原因。 解决方法:在起app之前,先启用gevent monkey-patching,如下 阅读全文

posted @ 2022-07-28 17:04 泡泡乌龙学习中 阅读(2915) 评论(0) 推荐(0)

导航