求助:python方式,安装mac的,mitmproxy报错

方式1:pipx install mitmproxy -i https://pypi.mirrors.ustc.edu.cn/simple/
方式2:pipx install mitmproxy
报错信息:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff1b1fb8df0>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff1b1fe0040>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff1b1fe0160>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff1b1fe0280>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff1b1fe0370>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

ERROR: Could not find a version that satisfies the requirement mitmproxy

ERROR: No matching distribution found for mitmproxy

Error installing mitmproxy.

caohedeMBP:mitm caohe$ pipx install mitmproxy

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd8918f8d90>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd891927040>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd891927130>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd891927250>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fd891927340>: Failed to establish a new connection: [Errno 61] Connection refused’))’: /simple/mitmproxy/

ERROR: Could not find a version that satisfies the requirement mitmproxy

ERROR: No matching distribution found for mitmproxy
影响:python里边没办法使用mitmproxy的包,麻烦老师看看

报错说没匹配的mitmproxy
你python好像是3.9吧
降低到3.8版本,然后再装试试

我本地装的就是3.8

下载,解压后安装,链接:https://mitmproxy.org/