简体   繁体   English

使用pip在ubuntu上安装gcovr

[英]installing gcovr on ubuntu using pip

I am trying to intall gcovr on ubuntu using 我正在尝试使用ubuntu安装gcovr

pip install gcovr

but it gives this error 但是它给出了这个错误

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

Storing debug log for failure in /home/mymachin/.pip/pip.log 在/home/mymachin/.pip/pip.log中存储故障的调试日志

Any ideas? 有任何想法吗?

Thanks 谢谢

I had no problems installing it this way: 我以这种方式安装它没有问题:

sudo pip install gcovr

No errors. 没有错误。

If you're on Ubuntu 14.04, you may need to upgrade your pip. 如果您使用的是Ubuntu 14.04,则可能需要升级您的pip。

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
sudo python get-pip.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM