我正在尝试为Python安装ReportLab。我有Windows 7,Python 2. 7和Visual Studio 2013,我正在使用命令行“pip install ReportLab”,但它不起作用。
我有生成的pip日志文件数据-将此文件附加到我的问题以便其他人可以查看的最佳方法是什么?
以下是日志文件/命令行的最后一部分:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DLIBART_COMPILATION -DLIBART_VERSION=\"2.3.12\" -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\gt1 -IC:\Python27\include -IC:\Python27\PC /Tcc:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_rgb_rgba_affine.c /Fobuild\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_rgb_rgba_affine.obj
art_rgb_rgba_affine.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DLIBART_COMPILATION -DLIBART_VERSION=\"2.3.12\" -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\gt1 -IC:\Python27\include -IC:\Python27\PC /Tcc:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp_intersect.c /Fobuild\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp_intersect.obj
art_svp_intersect.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DLIBART_COMPILATION -DLIBART_VERSION=\"2.3.12\" -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\gt1 -IC:\Python27\include -IC:\Python27\PC /Tcc:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp_render_aa.c /Fobuild\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp_render_aa.obj
art_svp_render_aa.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DLIBART_COMPILATION -DLIBART_VERSION=\"2.3.12\" -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl -Ic:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\gt1 -IC:\Python27\include -IC:\Python27\PC /Tcc:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_misc.c /Fobuild\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_misc.obj
art_misc.c
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild\amd64 /EXPORT:init_renderPM build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\_renderPM.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\gt1\gt1-parset1.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\gt1\gt1-dict.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\gt1\gt1-namecontext.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\gt1\gt1-region.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_vpath_bpath.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_rgb_pixbuf_affine.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_rgb_svp.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp_vpath.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp_vpath_stroke.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp_ops.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_vpath.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_vpath_dash.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_affine.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_rect.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_rgb_affine.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_rgb_affine_private.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_rgb.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_rgb_rgba_affine.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp_intersect.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_svp_render_aa.obj build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\libart_lgpl\art_misc.obj /OUT:build\lib.win-amd64-2.7\reportlab\graphics\_renderPM.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\_renderPM.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\_renderPM.pyd.manifest
Creating library build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\_renderPM.lib and object build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\_renderPM.exp
C:\Program Files (x86)\Windows Kits\8.1\bin\x64\mt.exe -nologo -manifest build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\_renderPM.pyd.manifest -outputresource:build\lib.win-amd64-2.7\reportlab\graphics\_renderPM.pyd;2
build\temp.win-amd64-2.7\Release\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab\src\rl_addons\renderPM\_renderPM.pyd.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
error: command 'mt.exe' failed with exit status 31
----------------------------------------
Command C:\Python27\python.exe -c "import setuptools;__file__='c:\\users\\kvincent\\appdata\\local\\temp\\pip-build-kvincent\\reportlab\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\kvincent\appdata\local\temp\pip-zbzt97-record\install-record.txt --single-version-externally-managed failed with error code 1 in c:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab
Exception information:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 139, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\install.py", line 271, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "C:\Python27\lib\site-packages\pip\req.py", line 1185, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "C:\Python27\lib\site-packages\pip\req.py", line 592, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "C:\Python27\lib\site-packages\pip\util.py", line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command C:\Python27\python.exe -c "import setuptools;__file__='c:\\users\\kvincent\\appdata\\local\\temp\\pip-build-kvincent\\reportlab\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\kvincent\appdata\local\temp\pip-zbzt97-record\install-record.txt --single-version-externally-managed failed with error code 1 in c:\users\kvincent\appdata\local\temp\pip-build-kvincent\reportlab
3条答案
按热度按时间5cnsuln71#
你没有丢失文件,只是找不到而已。
按以下顺序尝试这些代码:
python setup.py build --compiler=mingw32
然后:
python setup.py install
bpsygsoo2#
在此处获取预编译二进制文件:http://www.lfd.uci.edu/~gohlke/pythonlibs/#reportlab
在Windows上安装未编译的Python库是一件痛苦的事情:别让自己经历这些。简单点:买点现成的。
igetnqfo3#
我发现在python 2.7中安装reportlab时出现问题
我建议您升级到python 3.6,您可以使用pip命令安装reportlab。
'pip安装报告实验室'