Python pip安装报告实验室

2024-04-27 23:01:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试安装reportlabforpython。但是Python-Studio-7并没有使用visualstudio-2013命令行。在

我有生成的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

Tags: pipbuildsrcreleaselocalwinusersappdata
2条回答

在此处获取预编译的二进制文件: http://www.lfd.uci.edu/~gohlke/pythonlibs/#reportlab

在Windows上安装未编译的Python库是一件痛苦的事:不要让自己经历。简单点:准备一些已经为你做的东西。在

你没有丢失文件,只是找不到。在

按以下顺序尝试这些代码:

python setup.py build compiler=mingw32

然后:

python setup.py install

相关问题 更多 >