Chinaunix首页 | 论坛 | 博客
  • 博客访问: 139192
  • 博文数量: 18
  • 博客积分: 1461
  • 博客等级: 上尉
  • 技术积分: 230
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-18 22:50
个人简介

供职于银行数据中心,专注于系统管理,自动化运维,生产运营。性随和,好交友

文章分类

全部博文(18)

文章存档

2016年(5)

2014年(1)

2013年(1)

2010年(11)

我的朋友

分类: 系统运维

2016-01-11 16:15:19

最近内部运维自动化项目在开发中使用python_rrdtool做趋势数据分析,安装这个包是报错,怎么解决呢? 网上找了一圈发现有同类的,但是没找到解决方法,先记下来,后续添加解决方案。 顺路征求解决办法,期待大神出手。

C:\Users\leom>pip install python_rrdtool
Collecting python-rrdtool
  Using cached python-rrdtool-1.4.7.tar.gz
Installing collected packages: python-rrdtool
  Running setup.py install for python-rrdtool
    Complete output from command c:\python27\python.exe -c "import setuptools, t
okenize;__file__='c:\\users\\leom\\appdata\\local\\temp\\pip-build-rq9sch\\pytho
n-rrdtool\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read
().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\leom\app
data\local\temp\pip-hf_eax-record\install-record.txt --single-version-externally
-managed --compile:
    running install
    running build
    running build_ext
    running build_configure
    building 'rrdtoolmodule' extension
    creating build
    creating build\temp.win32-2.7
    creating build\temp.win32-2.7\Release
    creating build\temp.win32-2.7\Release\rrdtool-1.4.7
    creating build\temp.win32-2.7\Release\rrdtool-1.4.7\bindings
    creating build\temp.win32-2.7\Release\rrdtool-1.4.7\bindings\python
    C:\Users\leom\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\
9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Irrdtool-1.4.7/src -Ic:\
python27\include -Ic:\python27\PC /Tcrrdtool-1.4.7/bindings/python/rrdtoolmodule
.c /Fobuild\temp.win32-2.7\Release\rrdtool-1.4.7/bindings/python/rrdtoolmodule.o
bj
    rrdtoolmodule.c
    rrdtool-1.4.7/bindings/python/rrdtoolmodule.c(41) : fatal error C1083: Canno
t open include file: '../../rrd_config.h': No such file or directory
    error: command 'C:\\Users\\leom\\AppData\\Local\\Programs\\Common\\Microsoft
\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2


    ----------------------------------------
Command "c:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\leom\\appdata\\local\\temp\\pip-build-rq9sch\\python-rrdtool\\setup.py';exe
c(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n')
, __file__, 'exec'))" install --record c:\users\leom\appdata\local\temp\pip-hf_e
ax-record\install-record.txt --single-version-externally-managed --compile" fail
ed with error code 1 in c:\users\leom\appdata\local\temp\pip-build-rq9sch\python
-rrdtool
阅读(5006) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~