栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

mac安装frida失败解决记录

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

mac安装frida失败解决记录

根据官方指导,安装报错:

pip install frida

knight@knight ~ % pip install frida
Collecting frida
Using cached frida-15.1.17.tar.gz (11 kB)
Preparing metadata (setup.py) … done
Requirement already satisfied: setuptools in /Library/frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from frida) (51.3.3)
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
╰─> [16 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.9
creating build/lib.macosx-10.9-x86_64-3.9/frida
copying frida/init.py -> build/lib.macosx-10.9-x86_64-3.9/frida
copying frida/core.py -> build/lib.macosx-10.9-x86_64-3.9/frida
running build_ext
looking for prebuilt extension in home directory, i.e. /Users/knight/frida-15.1.17-py3.9-macosx-10.9-x86_64.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 /Users/knight/frida-15.1.17-py3.9-macosx-10.9-x86_64.egg
error:
[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
╰─> [16 lines of output]
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.9
creating build/lib.macosx-10.9-x86_64-3.9/frida
copying frida/init.py -> build/lib.macosx-10.9-x86_64-3.9/frida
copying frida/core.py -> build/lib.macosx-10.9-x86_64-3.9/frida
running build_ext
looking for prebuilt extension in home directory, i.e. /Users/knight/frida-15.1.17-py3.9-macosx-10.9-x86_64.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 /Users/knight/frida-15.1.17-py3.9-macosx-10.9-x86_64.egg
error:
[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.

看unable是证书报错,运行以下命令

sudo /Applications/Python 3.9/Install Certificates.command

knight@knight ~ % sudo /Applications/Python 3.9/Install Certificates.command
Password:
– pip install --upgrade certifi
WARNING: The directory ‘/Users/knight/Library/Caches/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo’s -H flag.
Requirement already satisfied: certifi in /Library/frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (2020.12.5)
Collecting certifi
Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.2/149.2 KB 2.3 MB/s eta 0:00:00
Installing collected packages: certifi
Attempting uninstall: certifi
Found existing installation: certifi 2020.12.5
Uninstalling certifi-2020.12.5:
Successfully uninstalled certifi-2020.12.5
Successfully installed certifi-2021.10.8
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
– removing any existing file or link
– creating symlink to certifi certificate bundle
– setting permissions
– update complete

pip install frida

knight@knight ~ % pip install frida
Collecting frida
Using cached frida-15.1.17.tar.gz (11 kB)
Preparing metadata (setup.py) … done
Requirement already satisfied: setuptools in /Library/frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from frida) (51.3.3)
Building wheels for collected packages: frida
Building wheel for frida (setup.py) … done
Created wheel for frida: filename=frida-15.1.17-cp39-cp39-macosx_10_9_x86_64.whl size=14270231 sha256=e22c96c7759f7c4dda977d3abf1b5995acae94c39aadb9d11a71f672bdf1f31f
Stored in directory: /Users/knight/Library/Caches/pip/wheels/6f/56/ae/52c60d4362406776557a6f62b57c005b95fe3d61db4f9487f2
Successfully built frida
Installing collected packages: frida
Successfully installed frida-15.1.17
knight@knight ~ %

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/770131.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号