python3.9 安装frida 失败--已解决

原始报错具体报错如下

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 即可成功
在这里插入图片描述
在这里插入图片描述

至此,安装问题完美解决

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阿雷由

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值