Open jason1235 opened 3 years ago
C:\SanforProxy>mitmweb -k -s main.py Traceback (most recent call last): File "c:\program files\python\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\program files\python\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Program Files\python\Scripts\mitmweb.exe__main.py", line 5, in <mo dule> File "c:\program files\python\lib\site-packages\mitmproxy\init__.py", line 9 , in asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) AttributeError: module 'asyncio' has no attribute 'WindowsSelectorEventLoopPolic y'
可能是Python版本问题,请使用3.7及以上版本
C:\SanforProxy>mitmweb -k -s main.py Traceback (most recent call last): File "c:\program files\python\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\program files\python\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Program Files\python\Scripts\mitmweb.exe__main.py", line 5, in <mo dule> File "c:\program files\python\lib\site-packages\mitmproxy\init__.py", line 9 , in
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
AttributeError: module 'asyncio' has no attribute 'WindowsSelectorEventLoopPolic
y'