Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 致命错误LNK1181:无法打开输入文件';imagehlp.lib';安装cx_冻结_Python 3.x_Cx Freeze - Fatal编程技术网

Python 3.x 致命错误LNK1181:无法打开输入文件';imagehlp.lib';安装cx_冻结

Python 3.x 致命错误LNK1181:无法打开输入文件';imagehlp.lib';安装cx_冻结,python-3.x,cx-freeze,Python 3.x,Cx Freeze,我正在尝试使用以下方法在python 3.4上安装cx_Freeze: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org cx_freeze 然而,我得到了错误 creating build\temp.win-amd64-3.4\Release\source C:\VS10\VC\Bin\cl.exe /c /nologo /Ox /

我正在尝试使用以下方法在python 3.4上安装cx_Freeze:

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org cx_freeze
然而,我得到了错误

creating build\temp.win-amd64-3.4\Release\source 
C:\VS10\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG - IC:\Python34\include -IC:\Python34\include /Tcsource/util.c /Fobuild\temp.win-amd64-3.4\Release\source/util.obj 
util.c 
C:\VS10\VC\Bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python34\libs /LIBPATH:C:\Python34\PCbuild\amd64 imagehlp.lib Shlwapi.lib /EXPORT:PyInit_util build\temp.win-amd64-3.4\Release\source/util.obj /OUT:build\lib.win-amd64-3.4\cx_Freeze\util.pyd /IMPLIB:build\temp.win-amd64-3.4\Release\source\util.lib     /MANIFESTFILE:build\temp.win-amd64-3.4\Release\source\util.pyd.manifest 
LINK : fatal error LNK1181: cannot open input file 'imagehlp.lib' 
error: command 'C:\VS10\VC\Bin\link.exe' failed with exit status 1181

你知道如何解决这个问题吗?

cx\u Freeze的当前/默认版本是5.1.1,它只支持Python 2.7、3.5和3.6

支持Python 3.4的最新版本是5.0.2。请参阅
cx\u冻结
cx冻结
。所以你应该试试

pip install [...] cx_Freeze==5.0.2
其中,
[…]
表示安装命令的附加选项

我不确定版本的这种不兼容是否是您报告的特定错误的根本原因,但它会在您的项目中的某个时候引起问题