Loading... 我用的环境是anaconda创建的名为frida_hy的虚拟环境 ## 1、创建环境 ```shell conda create -n frida_hy python=3.10 ``` ## 2、激活环境 ```shell conda activate frida_hy ``` ## 3、安装最新版frida和frida-tools ```shell pip install frida pip install frida-tools ``` ## 4、测试 ```yaml frida --version ``` 会报错 ```yaml zsh: command not found: frida ``` ## 查找问题 安装frida-tools时会有个提示 ```python WARNING: The scripts frida, frida-apk, frida-compile, frida-create, frida-discover, frida-join, frida-kill, frida-ls, frida-ls-devices, frida-ps, frida-pull, frida-push, frida-rm and frida-trace are installed in '/Users/huoyu/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. ``` ## 这句话是个重点 **frida-trace are installed in '/Users/huoyu/.local/bin' which is not on PATH.** 意思就是没有加入环境变量里面 ## 解决问题 编辑您使用的 Shell 配置文件(例如 `.bashrc`、`.zshrc`) ## 这里我使用的是 ```yaml vim .zshrc ``` ## 最下面添加 ```yaml export PATH="/Users/huoyu/.local/bin:$PATH" ``` 然后执行` source ~/.bashrc`,重新启动终端窗口(使用`common+Q`全部退出) 再次进入就没问题了 最后修改:2023 年 06 月 21 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏