python打包后不能用_(python)使用pyinstaller打包含有pycrypto模块不能运行

问题:(python)使用pyinstaller打包含有pycrypto模块不能运行描述:点击.py文件可以运行,且不会出现问题。使用pyinstaller打包后,不能运行。from Tkinter import *import requestsimport reimport socketimport win32api,win32conimport osimport sysfrom Crypto....
摘要由CSDN通过智能技术生成

问题:(python)使用pyinstaller打包含有pycrypto模块不能运行

描述:

点击.py文件可以运行,且不会出现问题。

使用pyinstaller打包后,不能运行。from Tkinter import *

import requests

import re

import socket

import win32api,win32con

import os

import sys

from Crypto.Cipher import AES

from binascii import b2a_hex, a2b_hex

使用不含cmd窗口打包方式,不能运行,弹出对话框 return -1 .

使用含cmd窗口的打包方式,运行,cmd窗口闪退,抓取图片如下

a54afbd8332971de869bd141b3cefae1.png

环境:windows 10 专业版 10586

python 2.7.11 32bit

pyinstaller 3.1.1

pycrypto-2.6.1-py2.7-win32

build目录下的warnXXXXXXX.txt 如下missing module named pyimod03_importers.FrozenImporter - imported by pyimod03_importers, C:\Users\szk\Desktop\PyInstaller-3.1.1\PyInstaller\loader\rthooks\pyi_rth_pkgres.py

missing module named pyimod03_importers - imported by C:\Users\szk\Desktop\PyInstaller-3.1.1\PyInstaller\loader\rthooks\pyi_rth_pkgres.py

missing module named copy.deepcopy - imported by copy, weakref

missing module named itertools.islice - imported by itertools, repr, heapq

missing module named itertools.starmap - imported by itertools, collections

missing module named itertools.repeat - imported by itertools, collections

missing module named itertools.imap - imported by itertools, heapq, collections

missing module named itertools.tee - imported by itertools, heapq

missing module named itertools.izip - imported by itertools, heapq

missing module named itertool

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值