【发布时间】:2019-01-23 01:35:27
【问题描述】:
当我尝试通过 pip 为 python 安装模块 netfilterqueue 时,我收到错误:
“命令 "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools,tokenize;file='/private/tmp/pip-install-Ut3XcJ/netfilterqueue/setup.py';f=getattr(tokenize, 'open', open)(文件);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" 安装 --record /private/tmp/pip-record-teUDXs/install-record.txt --single-version-externally-managed --compile" 失败,错误代码 1 在 /private/tmp/pip-install-Ut3XcJ/netfilterqueue /"
我安装了模块 scapy 没有任何问题,所以我很困惑为什么 netfilterqueue 没有安装。我目前使用的是 macOS High Sierra。
【问题讨论】: