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

后端 未结 4 644
情歌与酒
情歌与酒 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:54

    I think it has something to do with the spaces in the directory. You should try using .rstrip(). For example, put this:

    directory='C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT'
    directory=directory.rstrip()
    

    You can then use the variable directory like you would have used the actual path.

    This should make python able to recognize the directory where it wouldn't be able to decipher it before.

提交回复
热议问题