Termux安裝mitmproxy記錄
Termux 下安裝 Mitmproxy

時間: 2023 年 6 月 22 日
當前?Python?版本:?3.11.4
當前?mitmproxy?版本:?9.0.1
直接安裝會卡在 cryptography 很久,然后報錯。
把 cryptography 包先拎出來按安裝好。
在 termux 上安裝,最簡單的方法是 apt install python-cryptography,官方的軟件源中已經(jīng)內(nèi)置了這個包。但是官的軟件源中的版本是最新版本(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 包,依次下載安裝:

Termux安裝mitmproxy記錄的評論 (共 條)
