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

814 ワード

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を開いてインストールするLibdistutils(D:DevPython 27Libdistutilsなど)msvc 9 compiler.pyファイル
検索:
      ld_args.append(‘/MANIFESTFILE:’ + temp_manifest)
         
ld_args.append(‘/MANIFEST’)