原始报错具体报错如下
Looking in indexes: https://pypi.douban.com/simple/
Collecting frida
Using cached https://pypi.doubanio.com/packages/c5/71/e01da10bfd7eee48e8688e40263d6e53c6536d33eeef7e5ae9d215ad735a/frida-15.2.2.tar.gz (11 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: setuptools in d:\anaconda3\lib\site-packages (from frida) (63.4.1)
Building wheels for collected packages: frida
Building wheel for frida (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\frida
copying frida\core.py -> build\lib.win-amd64-cpython-39\frida
copying frida\__init__.py -> build\lib.win-amd64-cpython-39\frida
running build_ext
error: HTTP Error 418:
looking for prebuilt extension in home directory, i.e. C:\Users\frida-15.2.2-py3.9-win-amd64.egg
prebuilt extension not found in home directory, will try downloading it
querying pypi for available prebuilds
downloading package list from https://pypi.douban.com/simple/frida/
unable to download it within 20 seconds; please download it manually to C:\Users\frida-15.2.2-py3.9-win-amd64.egg
[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
Failed to build frida
Installing collected packages: frida
Running setup.py install for frida ... error
error: subprocess-exited-with-error
× Running setup.py install for frida did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running install
D:\Anaconda3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\frida
copying frida\core.py -> build\lib.win-amd64-cpython-39\frida
copying frida\__init__.py -> build\lib.win-amd64-cpython-39\frida
running build_ext
error: HTTP Error 418:
looking for prebuilt extension in home directory, i.e. C:\Users\frida-15.2.2-py3.9-win-amd64.egg
prebuilt extension not found in home directory, will try downloading it
querying pypi for available prebuilds
downloading package list from https://pypi.douban.com/simple/frida/
unable to download it within 20 seconds; please download it manually to C:\Users\frida-15.2.2-py3.9-win-amd64.egg
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> frida
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
但是上面的报错信息过多,我们直接定位到下面关键的一行
downloading package list from https://pypi.douban.com/simple/frida/
unable to download it within 20 seconds; please download it manually to C:\Users\frida-15.2.2-py3.9-win-amd64.egg
明显是超时,找不到对应的egg 包导致,我们先到官网下载
但是,你懂的,去了官网才发现坑点,原来是frida 根本没有给 python3.9 适配,无奈只能升级python 到3.10
升级之后,下载对应的egg 版本放在家目录下面,再次执行pip install frida
即可成功
至此,安装问题完美解决