此贴旨在记录frida安装错误解决过程
frida 14.2.18 这个版本看起来是网上各个教程使用比较多的版本,新版frida有很多api进行了改动。
建议安装环境:
python=3.8
frida=14.2.18
frida-tools=9.2.4
- 1.首先执行
pip3 install frida-tools==9.2.4 -i https://pypi.mirrors.ustc.edu.cn/simple/
ps:安装firda-tools 9.2.4版本,会自动安装frida依赖
- 2.报错处理
这里会提示报错:
Traceback (most recent call last):
File "C:\Users\A\AppData\Local\Temp\pip-install-1wl55ufj\frida_a98f6605b4c94c63a44a70d7ef5aeee2\setup.py", line 101, in build_extension
with open(egg_path, "rb") as cache:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\A/frida-14.2.18-py3.8-win-amd64.egg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
....
end of output
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for frida
Running setup.py clean for frida
Successfully built frida-tools
Failed to build frida
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (frida)
这里要仔细注意下报错的堆栈,提示的直接原因是:
No such file or directory: 'C:\\Users\\A/frida-14.2.18-py3.8-win-amd64.egg'
也就是提示我们需要自己提供frida-14.2.18-py3.8-win-amd64.egg这样一个文件并且放置在
C:\\Users\\A目录下
注意这里A是我的用户名,即路径是C:\\Users\\用户
这里我们去
https://pypi.org/project/frida/14.2.18/#files
直接下载frida-14.2.18-py3.8-win-amd64.egg文件,然后下载完移动到C:\\Users\\用户 目录下
- 3.再次安装
pip3 install frida-tools==9.2.4 -i https://pypi.mirrors.ustc.edu.cn/simple/
提示安装成功
Successfully built frida
Installing collected packages: wcwidth, pygments, frida, colorama, prompt-toolkit, frida-tools
Successfully installed colorama-0.4.6 frida-14.2.18 frida-tools-9.2.4 prompt-toolkit-3.0.52 pygments-2.19.2 wcwidth-0.6.0
参考: