zoukankan      html  css  js  c++  java
  • 解决py2exe error: MSVCP90.dll: No such file or directory

    解决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"])

  • 相关阅读:
    LINX中的各种alloc
    Enea LINX代码分析之二(ECM_RX)
    Enea LINX代码分析之一
    看代码和写代码还是很不同的
    sctp bind
    sockaddr和sockaddr_in
    pthread条件变量
    System V IPV & Posix IPC(摘自Unix网络编程卷2)
    [宽度优先搜索] FZU-2150 Fire Game
    [字符哈希] POJ 3094 Quicksum
  • 原文地址:https://www.cnblogs.com/wangzong/p/3025540.html
Copyright © 2011-2022 走看看