(资料图片仅供参考)
时间: 2023 年 6 月 22 日
当前 Python 版本: 3.11.4
当前 mitmproxy 版本: 9.0.1
直接安装会卡在 cryptography 很久,然后报错。
把 cryptography 包先拎出来按安装好。
在 termux 上安装,最简单的方法是 apt install python-cryptography,官方的软件源中已经内置了这个包。但是官的软件源中的版本是最新版本(41.0.1),而 mitmproxy 9.0.1 版本依赖的是 38.0.4 版本。因此,还是需要编译安装这个包 。
安装好 rust 等依赖后(rust cargo clang pkgconfig openssl好像有这些,termux里都装过了,分不清楚哪些是必要的了),使用这个命令安装 cryptography 38.0.4 版本:
然后安装 mitmproxy
[Cant install cryptography for python · Issue #9982 · termux/termux-packages (github.com)](https://github.com/termux/termux-packages/issues/9982#issuecomment-1369107679)
如果不想编译,可以试试我在 termux 上编译后导出的 whl 包,依次下载安装: