ImportError: No module named 'thread'

前端 未结 5 449
Happy的楠姐
Happy的楠姐 2021-01-02 01:28

when I run mitmproxy command in command line, I get the following error.

% mitmproxy
Traceback (most recent call last):
  File \"/usr/local/bin/mitmproxy\",          


        
5条回答
  •  甜味超标
    2021-01-02 01:46

    You are trying to run Python 2 code on Python 3, which will not work.

    As of April 2016, mitmproxy only supports Python 2.7. We're actively working to fix that in the next months, but for now you need to use Python 2 or the binaries provided at http://mitmproxy.org.

    As of August 2016, the development version of mitmproxy now supports Python 3.5+. The next release (0.18) will be the first one including support for Python 3.5+.

    As of January 2017, mitmproxy only supports Python 3.5+.

提交回复
热议问题