最近内部运维自动化项目在开发中使用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
阅读(5069) | 评论(0) | 转发(0) |