当前位置: 代码迷 >> 综合 >> 解决AttributeError: module ‘asyncio‘ has no attribute ‘WindowsSelectorEventLoopPolicy‘
  详细解决方案

解决AttributeError: module ‘asyncio‘ has no attribute ‘WindowsSelectorEventLoopPolicy‘

热度:16   发布时间:2024-01-28 19:54:29.0

解决AttributeError: module ‘asyncio’ has no attribute ‘WindowsSelectorEventLoopPolicy’

最近爬取微信时碰到了一些问题,安装mitmproxy证书时没有出错,但是在检测时出现了问题
在这里插入图片描述

解决办法是降低你的Python版本或者mitmproxy版本,为了使以前的程序不受编辑器的版本冲突,我这里更改的是mitmproxy版本

pip install mitmproxy==5.0.0

重新安装
在测试
在这里插入图片描述
成功!!

  相关解决方案