Frida-ios-dump,dump.py 为什么执行的Python版本,不是当前的Python版本

1.frida-ios-dump,我在执行dump.py com.tencent.xin 时候,报错。 我执行sudo pip install cryptography==2.4.2,重新安装只会安装到Python 2.7的路径下, 请问为什么执行dump.py, 会执行Python 3.7 的路径下,如何改回Python 2.7, 我没有切换过Python,求教

2.我的Python 版本是2.7.1的

3.下面是我 的bash_profile和bashrc的配置 ,没有配置过Python3.7

➜ ~ python dump.py com.tencent.xin
python: can’t open file ‘dump.py’: [Errno 2] No such file or directory

配置了环境变量的,不用cd 到frida-ios-dump目录下

如果想深入学习,可以看看pyenv GitHub - pyenv/pyenv: Simple Python version management

1.我重新装了sudo pip install cryptography==2.4.2


2.执行python dump.py 微信,还是报错:/Library/Python/2.7/site-packages/paramiko/kex_ecdh_nist.py:39: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding
Xnip2019-05-17_17-45-06

3.我又重装了 Frida-ios-dump,我发现执行sudo pip install -r /opt/dump/frida-ios-dump/requirements.txt --upgrade的时候,全部都是在这个路径里/usr/local/lib/python3.7/site-packages
Xnip2019-05-17_17-52-26

1.我在frida-ios-dump目录里执行python dump.py 微信,还是在报错:/Library/Python/2.7/site-packages/paramiko/kex_ecdh_nist.py:39: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
Xnip2019-05-17_17-45-06

2.我的sudo pip install cryptography==2.4.2,是重新装过的,壳还是报1的错
Xnip2019-05-17_17-44-50

3.我重新去装frida-ios-dump,发现 依赖是在这个路径 /usr/local/lib/python3.7/site-packages,这个应该怎么处理,谢谢
Xnip2019-05-17_17-52-26

。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
说不出话

是这样的。pip跟python都是分版本的。brew装的话我记得python2和pip2就是强制py2版本

image

强烈建议 pyenv