1

为了安装frida,我使用了命令 sudo pip install frida-tools并且安装成功:

Installing collected packages: frida, frida-tools Successfully installed frida-12.7.16 frida-tools-5.1.0

但是在运行命令时: frida --version

我收到以下错误:

  File "/usr/local/bin/frida", line 8, in <module>
    sys.exit(main())
  File "/Library/Python/2.7/site-packages/frida_tools/repl.py", line 24, in main
    import frida
ImportError: No module named frida```
4

2 回答 2

1
sudo pip3 install frida-tools
$ unlink /usr/local/bin/python
$ ln -s /usr/local/bin/python3.7 /usr/local/bin/python

选择

$ cd ~/
$ open -e .bash_profile

粘贴到编辑器,到顶部

 alias python='python3'

保存,然后运行

$ source ~/.bash_profile
于 2019-10-30T01:35:16.160 回答
0

尝试 :

sudo pip install frida

如果不起作用,请尝试在虚拟环境中进行测试:

virtualenv env && source env/bin/activate && pip install frida-tools

如果不起作用,请检查您的 pip 版本是否指向相同的 python 版本:

sudo pip -V
> pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

sudo python -V
> Python 3.6.8
于 2019-10-30T02:20:52.217 回答