gpt4 book ai didi

python - pip 无法安装 rrdtool

转载 作者:行者123 更新时间:2023-11-28 21:53:16 25 4
gpt4 key购买 nike

我在 Debian 6.0 和 Python 2.6.6 上运行。我执行 sudo pip install rrdtool 并得到以下错误。

/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 但似乎不起作用。

我在这里错过了什么?

最佳答案

我通过使用 apt-get 而不是 pip 来解决它:sudo apt-get install python-rrdtool

关于python - pip 无法安装 rrdtool,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26920319/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com