Error: “MSVCP90.dll: No such file or directory” even though Microsoft Visual C++ 2008 Redistributable Package is installed

后端 未结 4 641
情歌与酒
情歌与酒 2021-02-07 04:33

I\'m trying to build a package from source by executing python setup.py py2exe

This is the section of code from setup.py, I suppose would be relevant:

4条回答
  •  迷失自我
    2021-02-07 04:50

    (new answer, since the other answer describes an alternate solution)

    You can take the files from the WinSxS directory and copy them to the C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT directory (normally created by Visual Studio, which you don't have). Copy them to get the following structure:

      +-Microsoft.VC90.CRT
      | |
      | +-Microsoft.VC90.CRT.manifest
      | +-msvcm90.dll
      | +-msvcp90.dll
      | +-msvcr90.dll
    

    Then, you should be able to run the setup program (still excluding msvcp90.dll, as in the other answer), and it should successfully find the files under Microsoft.VC90.CRT and copy them as data files to your bundle.

    See the py2exe tutorial for more information.

提交回复
热议问题