环境:Kali Linux 2
我开始阅读这本书“Python网络编程食谱”,作者列出了我在本书中需要的几个模块,除了#netifaces之外,我能够安装所有这些模块,我尝试了“pip install netifaces”和“python setup. py install" 方法,但都出现此消息:
x86_64-linux-gnu-gcc: error trying to exec 'cc1': execvp: No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-lsf_5N/netifaces/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TsHwUh-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-lsf_5N/netifaces
Storing debug log for failure in /root/.pip/pip.log
我尝试安装 python-dev 以及我在以前的问题中可以找到的所有库,但没有任何事情发生
谢谢大家的帮助