Frida安装避坑

pip install frida-tools

1、建议安装时使用可的代理进行安装,不然在容易报(一般是在安装frida依赖的时候):unable to download it within 20 seconds; please download it manually to

pip install frida-tools --proxy='socks5://127.0.0.1:10808'

2、翻不了就手动下载安装,地址:Links for frida

3、版本问题,比如我的环境是python3.9但是frida只有3.8和3.10版本时,就下载3.10的,然后:

easy_install frida-15.1.16-py3.10-win32.egg

3.1 用着用着突然报如下错误时:

Failed to load the Frida native extension: DLL load failed while importing _frida: 找不到指定的模块。
Please ensure that the extension was compiled for Python 3.x.

参照第3点,下载对应egg包,重新easy_install即可解决

4、报No module named easy_install时:

①查看有没有安装setuptools;

②setuptools版本>51.3.3时,就没有带easy_install,按如下方式解决

pip uninstall setuptools
pip install -v setuptools==51.3.3

官网说明:History - setuptools 60.8.2.post20220211.post-20220211 documentation

Frida安装避坑_第1张图片

5、报AttributeError: module 'collections' has no attribute 'MutableMapping'时:

setuptools版本低了,建议升级到51.3.3的版本,方法同上一步

Building wheels for collected packages: frida-tools, 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
  ╰─> [11 lines of output]
      running bdist_wheel
      running build
      running build_py
      running build_ext
      error: The read operation timed out
      looking for prebuilt extension in home directory, i.e. C:\Users\italan\frida-15.1.16-py3.10-win32.egg
      prebuilt extension not found in home directory, will try downloading it
      querying pypi for available prebuilds
      using default index URL: https://pypi.org/simple/
      downloading package list from https://pypi.org/simple/frida/
      unable to download it within 20 seconds; please download it manually to C:\Users\italan\frida-15.1.16-py3.10-win32.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
Successfully built frida-tools
Failed to build frida
Installing collected packages: wcwidth, pygments, prompt-toolkit, frida, colorama, frida-tools
  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
  ╰─> [13 lines of output]
      running install
      D:\virtualenv\frida_env\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
      running build_ext
      error: The read operation timed out
      looking for prebuilt extension in home directory, i.e. C:\Users\italan\frida-15.1.16-py3.10-win32.egg
      prebuilt extension not found in home directory, will try downloading it
      querying pypi for available prebuilds
      using default index URL: https://pypi.org/simple/
      downloading package list from https://pypi.org/simple/frida/
      unable to download it within 20 seconds; please download it manually to C:\Users\italan\frida-15.1.16-py3.10-win32.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.

你可能感兴趣的:(Python笔记,pip)