VMware 中Ubuntu18.04 安装mitmproxy

说明:

今天想学习一下,在Ubuntu中使用mitmproxy,但是一直显示有问题,我安装的默认python 3.6.9版本

但是安装好mitmproxy后,一直使用有问题,网上也找了好的博客,但是最后还是使用mitmproxy --version一直报错,说各种模块和mitmproxy模块版本不兼容问。

最后我就一个一个模块更改对应版本,感觉改了至少十几个吧,最后我把吧这个最终的结果保留下来,希望帮助到需要的人吧,我这个找了好多博客,也没有找到好的解决方法。

我的版本:

python3 --version
Python 3.6.9

Ubuntu是18.04.

我这里版本最终改好的效果:

mitmproxy --version
Mitmproxy version: 2.0.2 (release version) 
Python version: 3.6.9
Platform: Linux-5.0.0-23-generic-x86_64-with-Ubuntu-18.04-bionic
SSL version: OpenSSL 1.1.1  11 Sep 2018
Linux distro: Ubuntu 18.04 bionic

pip freeze

如果你的python版本和我一样,可以尝试安装我的pip freeze

apturl==0.5.2
argcomplete==1.8.1
argh==0.26.2
asn1crypto==1.3.0
beautifulsoup4==4.6.0
blinker==1.4
Brlapi==0.6.6
Brotli==0.6.0
certifi==2019.11.28
cffi==1.13.2
chardet==3.0.4
Click==7.0
colorama==0.3.7
command-not-found==0.3
ConfigArgParse==0.11.0
construct==2.8.16
cryptography==2.4.2
cssutils==1.0.2
cupshelpers==1.0
defer==1.0.6
defusedxml==0.6.0
distro-info===0.18ubuntu0.18.04.1
feedparser==5.2.1
Flask==1.1.1
h11==0.9.0
h2==3.1.1
hpack==3.0.0
html2text==2016.5.29
html5lib==0.999999999
httplib2==0.9.2
hyperframe==5.2.0
idna==2.8
itsdangerous==1.1.0
Jinja2==2.10.3
jsbeautifier==1.6.4
kaitaistruct==0.8
keyring==10.6.0
keyrings.alt==3.0
language-selector==0.1
launchpadlib==1.10.6
lazr.restfulclient==0.13.5
lazr.uri==1.0.3
ldap3==2.6.1
louis==3.5.0
lxml==4.2.1
macaroonbakery==1.1.3
Mako==1.0.7
MarkupSafe==1.1.1
mitmproxy==5.0.1
netifaces==0.10.4
netlib==0.17
nose==1.3.7
oauth==1.0.1
olefile==0.45.1
passlib==1.6.5
pathtools==0.1.2
pexpect==4.2.1
Pillow==5.1.0
protobuf==3.10.0
publicsuffix2==2.20191221
PyAMF==0.8.0
pyasn1==0.4.8
pycairo==1.16.2
pycparser==2.19
pycrypto==2.6.1
pycups==1.9.73
pygobject==3.26.1
pyinotify==0.9.6
pymacaroons==0.13.0
PyNaCl==1.1.2
pyOpenSSL==19.0.0
pyparsing==2.4.6
pyperclip==1.7.0
pyRFC3339==1.0
python-apt==1.6.4
python-dateutil==2.6.1
python-debian==0.1.32
pytz==2018.3
pyxdg==0.25
PyYAML==3.12
reportlab==3.4.0
requests==2.18.4
requests-unixsocket==0.1.5
ruamel.yaml==0.16.6
ruamel.yaml.clib==0.2.0
SecretStorage==2.3.1
simplejson==3.13.2
six==1.10.0
sortedcontainers==2.1.0
system-service==0.3
systemd-python==234
tornado==6.0.3
ubuntu-drivers-common==0.0.0
ufw==0.36
unattended-upgrades==0.1
urllib3==1.22
urwid==2.0.1
usb-creator==0.3.3
wadllib==1.3.2
watchdog==0.8.3
webencodings==0.5
Werkzeug==0.16.0
wsproto==0.14.1
xkit==0.0.0
zope.interface==4.3.2
zstandard==0.12.0

我感觉如果python版本一样,应该可以使用的,不兼容的版本至少不用一个一个更改版本了,总算弄好了。

发布了197 篇原创文章 · 获赞 105 · 访问量 16万+

猜你喜欢

转载自blog.csdn.net/weixin_42081389/article/details/104076419