博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
解决py2exe error: MSVCP90.dll: No such file or directory
阅读量:4655 次
发布时间:2019-06-09

本文共 860 字,大约阅读时间需要 2 分钟。

解决py2exe error: MSVCP90.dll: No such file or directory

其实只要在windows目录下搜索MSVCP90.dll这个文件,然后拷到python安装目录下就可以了

 

利用py2exe生成exe文件时 如果缺少MSVCP90.dll会提示      

*** finding dlls needed *** error: MSVCP90.dll: No such file or directory   解决办法是在脚本中加入

"dll_excludes": ["MSVCP90.dll"], 具体代码如下:

  1. # setup.py  

  2. from distutils.core import setup  

  3. import py2exe  

  4.   

  5. setup(  

  6.     options = {  

  7.       "py2exe": {  

  8.         "dll_excludes": ["MSVCP90.dll"],  

  9.       }  

  10.     },  

  11.     windows=[{"script": "D:/Python27/workspase/t1.py"}] #t1.py的路径 

 

 

 

 

 

# -*- coding: utf-8 -*-

#windows 无控制台
#console  有控制台

from distutils.core import setup  

import py2exe

setup(version = "1.0",description = "QQ:",name = "STCP",zipfile=None,windows=[{"script": "STCP.py", "icon_resources": [(1, "App.ico")]}],options={"py2exe":{"dll_excludes":["MSVCP90.dll"],"includes":["sip"]}},includes = ["ini.py"])

转载于:https://www.cnblogs.com/wangzong/archive/2013/04/17/3025540.html

你可能感兴趣的文章
二次注入原理及防御
查看>>
会话记住已登录功能
查看>>
Linux内核分析——可执行程序的装载
查看>>
第一阶段冲刺3
查看>>
父类引用指向子类对象
查看>>
网页如何实现下载功能
查看>>
IT男专用表白程序
查看>>
读《大道至简》第六章感想
查看>>
ef linq 中判断实体中是否包含某集合
查看>>
章三 链表
查看>>
Solution for Concurrent number of AOS' for this application exceeds the licensed number
查看>>
CSE 3100 Systems Programming
查看>>
IntelliJ IDEA 的Project structure说明
查看>>
Java Security(JCE基本概念)
查看>>
Linux Supervisor的安装与使用入门
查看>>
创建 PSO
查看>>
JasperReport报表设计4
查看>>
项目活动定义 概述
查看>>
团队冲刺04
查看>>
我的Python分析成长之路8
查看>>