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

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

    I would recommend ignoring the dependency outright. Add MSVCP90.dll to the list of dll_excludes given as an option to py2exe. Users will have to install the Microsoft Visual C++ 2008 redistributable. An example:

    setup(
        options = {
                "py2exe":{
                ...
                "dll_excludes": ["MSVCP90.dll", "HID.DLL", "w9xpopen.exe"],
                ...
            }
        },
        console = [{'script': 'program.py'}]
    )
    

提交回复
热议问题