在Raspberry Pi上安装mitmproxy时python出现的问题

在Raspberry Pi上安装mitmproxy时python出现的问题,python,python-3.x,mitmproxy,Python,Python 3.x,Mitmproxy,我正试图在Raspberry Pi上安装mitmproxy,但遇到了以下问题,我认为这些问题与Python有关。我尝试了无数次尝试和搜索,但一点运气都没有 不确定这是否是由于mitmproxy所需的库的依赖关系,或者是由于我多次构建的python安装 我还尝试使用Wifi Pumpking,但这也利用了mitmproxy,这又一次是因为我无法安装Python。我还可以使用其他工具来管理从设备到internet的流量吗?(这是我论文的一部分) +echo正在创建开发环境。/venv。。。 正在创建

我正试图在Raspberry Pi上安装mitmproxy,但遇到了以下问题,我认为这些问题与Python有关。我尝试了无数次尝试和搜索,但一点运气都没有

不确定这是否是由于mitmproxy所需的库的依赖关系,或者是由于我多次构建的python安装

我还尝试使用Wifi Pumpking,但这也利用了mitmproxy,这又一次是因为我无法安装Python。我还可以使用其他工具来管理从设备到internet的流量吗?(这是我论文的一部分)

+echo正在创建开发环境。/venv。。。
正在创建开发环境。/venv。。。
+蟒蛇3-m静脉
+ . venv/bin/激活
+非破坏性
+[-n]
+[-n]
+[-n-o-n]
+[-n]
+取消设置虚拟环境
+[!非破坏性=非破坏性]
+虚拟环境=/home/pi/Desktop/mitmproxy/venv
+导出虚拟环境
+旧的虚拟路径=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/bin:/sbin:/bin
+PATH=/home/pi/Desktop/mitmproxy/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin
+导出路径
+[-n]
+[-z]
+旧的虚拟的PS1=#
+[x(venv)!=x]
+PS1=(venv)#
+出口PS1
+[-n-o-n]
+pip3安装-U pip设置工具
pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用。
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(总计=4,连接=None,读取=None,重定向=None,状态=None)。:/simple/pip/
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(重试(总计=3,连接=无,读取=无,重定向=无,状态=无)。:/simple/pip/
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(总计=2,连接=None,读取=None,重定向=None,状态=None)。:/simple/pip/
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(重试(总计=1,连接=无,读取=无,重定向=无,状态=无)。:/simple/pip/
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(总计=0,连接=None,读取=None,重定向=None,状态=None)。:/simple/pip/
无法获取URLhttps://pypi.org/simple/pip/: 确认ssl证书时出现问题:HTTPSConnectionPool(host='pypi.org',port=443):url:/simple/pip/(由SSLError引起(“由于ssl模块不可用,无法连接到HTTPS url”)-跳过
要求已经更新:pip in./venv/lib/python3.7/site-packages(18.1)
连接被“SSLError”(“无法连接到HTTPS URL,因为SSL模块不可用。”):/simple/setuptools中断后重试(重试(总计=4,连接=None,读取=None,重定向=None,状态=None))/
在连接被“SSLError”(“无法连接到HTTPS URL,因为SSL模块不可用”):/simple/setuptools中断后重试(重试(总计=3,连接=None,读取=None,重定向=None,状态=None))/
在连接被“SSLError”(“无法连接到HTTPS URL,因为SSL模块不可用”):/simple/setuptools中断后重试(重试(总计=2,连接=None,读取=None,重定向=None,状态=None))/
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(总计=1,连接=None,读取=None,重定向=None,状态=None)。:/simple/setuptools/
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(总计=0,连接=None,读取=None,重定向=None,状态=None)。:/simple/setuptools/
无法获取URLhttps://pypi.org/simple/setuptools/: 确认ssl证书时出现问题:HTTPSConnectionPool(host='pypi.org',port=443):url:/simple/setuptools/(由SSLError引起(“由于ssl模块不可用,无法连接到HTTPS url”)-跳过
已更新的要求:./venv/lib/python3.7/site-packages(40.6.2)中的setuptools
pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用。
无法获取URLhttps://pypi.org/simple/pip/: 确认ssl证书时出现问题:HTTPSConnectionPool(host='pypi.org',port=443):url:/simple/pip/(由SSLError引起(“由于ssl模块不可用,无法连接到HTTPS url”)-跳过
+pip3安装-r requirements.txt
pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用。
获得file:///home/pi/Desktop/mitmproxy (来自-r requirements.txt(第1行))
收集闪光灯=1.4(来自mitmproxy==5.0.0.dev0->-r requirements.txt(第1行))
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(总计=4,连接=None,读取=None,重定向=None,状态=None)。:/simple/blinker/
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(总计=3,连接=None,读取=None,重定向=None,状态=None)。:/simple/blinker/
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(总计=2,连接=None,读取=None,重定向=None,状态=None)。:/simple/blinker/
在连接被“SSLError”(“由于SSL模块不可用,无法连接到HTTPS URL”)中断后重试(重试(重试(总计=1,连接=无,读取=无,重定向=无,状态=无)。:/simple/blinker/
在连接被'SSLError'中断后重试(重试(总计=0,连接=None,读取=None,重定向=None,状态=None)(“无法连接到HTTPS URL,因为
+ echo Creating dev environment in ./venv...
Creating dev environment in ./venv...
+ python3 -m venv venv
+ . venv/bin/activate
+ deactivate nondestructive
+ [ -n  ]
+ [ -n  ]
+ [ -n  -o -n  ]
+ [ -n  ]
+ unset VIRTUAL_ENV
+ [ ! nondestructive = nondestructive ]
+ VIRTUAL_ENV=/home/pi/Desktop/mitmproxy/venv
+ export VIRTUAL_ENV
+ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=/home/pi/Desktop/mitmproxy/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ [ -n  ]
+ [ -z  ]
+ _OLD_VIRTUAL_PS1=#
+ [ x(venv)  != x ]
+ PS1=(venv) #
+ export PS1
+ [ -n  -o -n  ]
+ pip3 install -U pip setuptools
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Requirement already up-to-date: pip in ./venv/lib/python3.7/site-packages (18.1)
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools/
Could not fetch URL https://pypi.org/simple/setuptools/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/setuptools/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Requirement already up-to-date: setuptools in ./venv/lib/python3.7/site-packages (40.6.2)
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
+ pip3 install -r requirements.txt
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Obtaining file:///home/pi/Desktop/mitmproxy (from -r requirements.txt (line 1))
Collecting blinker<1.5,>=1.4 (from mitmproxy==5.0.0.dev0->-r requirements.txt (line 1))
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/blinker/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/blinker/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/blinker/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/blinker/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/blinker/
  Could not fetch URL https://pypi.org/simple/blinker/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/blinker/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement blinker<1.5,>=1.4 (from mitmproxy==5.0.0.dev0->-r requirements.txt (line 1)) (from versions: )
No matching distribution found for blinker<1.5,>=1.4 (from mitmproxy==5.0.0.dev0->-r requirements.txt (line 1))
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
apt-get install python-pyasn1 python-flask python-urwid python-dev libxml2-dev libxslt-dev libffi-dev
sudo pip install mitmproxy