首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pip无法安装rrdtool

pip无法安装rrdtool
EN

Stack Overflow用户
提问于 2014-11-13 23:20:58
回答 2查看 5.5K关注 0票数 2

我使用Python2.6.6在Debian6.0上运行。我执行sudo pip install rrdtool并得到以下错误。

代码语言:javascript
复制
/usr/include/python2.6/unicodeobject.h:477: note: expected ‘const char *’ but argument is of type ‘int’

error: command 'gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/rrdtool/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-orC7So-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/rrdtool
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "/usr/local/lib/python2.6/dist-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/usr/local/lib/python2.6/dist-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 51: ordinal not in range(128)

有一个建议的解决方案sudo apt-get install python-dev,但似乎不起作用。

我在这里错过了什么?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-11-14 00:03:16

我用apt-get代替pip:sudo apt-get install python-rrdtool来解决这个问题。

票数 3
EN

Stack Overflow用户

发布于 2016-04-29 17:33:59

我安装了包,但错误仍然存在。然后,我尝试了另外两个包rrdtool和librrd dev,错误是solved.My解决方案是:sudo apt-get install rrdtool python-rrdtool librrd-dev

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26920319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档