问题:(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窗口闪退,抓取图片如下
环境: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