如何安装一些Python软件包,调试日志输出?

如何安装一些Python软件包,调试日志输出?,python,Python,我正在尝试执行此指令: sudo pip install -r requirements.txt 但我犯了这个错误: Command /usr/bin/python -c "import setuptools, tokenize; __file__='/tmp/pip_build_root/pyzmq/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __

我正在尝试执行此指令:

sudo pip install -r requirements.txt
但我犯了这个错误:

Command /usr/bin/python -c "import setuptools, tokenize;
__file__='/tmp/pip_build_root/pyzmq/setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install 
--record /tmp/pip-JB30wJ-record/install-record.txt 
--single-version-externally-managed --compile failed with error code 1 
in /tmp/pip_build_root/pyzmq

Storing debug log for failure in /home/userrr/.pip/pip.log
如果你能帮助我,我将非常感激。
提前谢谢

请将调试日志输出编辑到问题中。还请将
requirements.txt
文件编辑到问题中。我的意思是,您应该将命令输出中指向的文件
/home/userrr/.pip/pip.log
编辑到问题中。请同时使用
requirements.txt
文件并编辑其内容。亲爱的@MegaIng,事实上,这正是我在安装openwsn时在说明中所需要的,请尝试使用此
sudo curlhttps://bootstrap.pypa.io/get-pip.py |python
then
pip安装-r requirements.txt