`

error: command 'mt.exe' failed with exit status 31

阅读更多

python setup.py build_ext -i

 报错:

正在创建库 build\temp.win32-2.7\Release\_imaging.lib 和对象 build\temp.win32-2.7\Release\_imaging.exp
C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mt.exe -nologo -manifest build\temp.win32-2.7\Release\_imaging.pyd.manifest -outputresource:F:\PIL\P
IL\_imaging.pyd;2

0v\temp.win32-2.7\Release\_imaging.pyd.manifest : general error c1010070: Failed to load and parse the manifest. {_~
error: command 'mt.exe' failed with exit status 31

 解决办法:
打开 Python安装下\Lib\distutils  (如:D:\Dev\Python27\Lib\distutils) msvc9compiler.py 文件

找到:

找到这一行 ld_args.append(‘/MANIFESTFILE:’ + temp_manifest)
然后在下面加入一行
ld_args.append(‘/MANIFEST’)
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics