出现错误如下:
- *** finding dlls needed ***
- error: MSVCP90.dll: No such file or directory
解决办法:
- 修改setup.py文件
- # setup.py
- from distutils.core import setup
- import py2exe
- #setup(console=["test.py"])
- setup(
- options = {
- "py2exe":{
- "dll_excludes":["MSVCP90.dll"],
- }
- },
- windows=[{"script":"D:/test.py"}]
- )
转载于:https://blog.51cto.com/693340562/1055010