niiick 2019-01-30 14:14 采纳率: 100%
浏览 8535
已采纳

pyinstaller打包exe后在其他环境上无法运行

win10 64位上用pyinstaller把.py打包.exe,本机上没有问题,但在win xp上无法运行

试着搜索了一下warn文件里的内容貌似没找到解决方案

打包过程的图片:

图片说明

warn里面的内容:

missing module named resource - imported by posix, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named posix - imported by os, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named _posixsubprocess - imported by subprocess, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named org - imported by pickle, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named readline - imported by cmd, code, pdb, C:\Users\12848\Desktop\project\I GOT YOU.py
excluded module named _frozen_importlib - imported by importlib, importlib.abc, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named _frozen_importlib_external - imported by importlib._bootstrap, importlib, importlib.abc, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named _winreg - imported by platform, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named _scproxy - imported by urllib.request
missing module named java - imported by platform, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named 'java.lang' - imported by platform, C:\Users\12848\Desktop\project\I GOT YOU.py, xml.sax._exceptions
missing module named vms_lib - imported by platform, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named termios - imported by tty, C:\Users\12848\Desktop\project\I GOT YOU.py, getpass
missing module named grp - imported by shutil, tarfile, C:\Users\12848\Desktop\project\I GOT YOU.py
missing module named 'org.python' - imported by copy, C:\Users\12848\Desktop\project\I GOT YOU.py, xml.sax
missing module named pwd - imported by posixpath, shutil, tarfile, http.server, webbrowser, C:\Users\12848\Desktop\project\I GOT YOU.py, netrc, getpass
missing module named _dummy_threading - imported by dummy_threading, C:\Users\12848\Desktop\project\I GOT YOU.py

我的程序中调用的库:

from tkinter import*
import tkinter.messagebox
from random import randint
from threading import Thread
from time import sleep
from re import split
  • 写回答

4条回答 默认 最新

  • niiick 2019-04-18 15:48
    关注

    解决了,是因为python版本的问题

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 关于#vscode#的问题:ESP32开发板对接MQTT实现小灯泡的开关
  • ¥15 TMC2209串口模式下读取不到寄存器的值串口助手蓝色字体是发过去的消息,绿色字体是收到的消息,第二行发送读取寄存器的指令但是没有读取到寄存器的值串口助手如下图:接线如下图,如何解决?
  • ¥15 高通安卓11提取完整线刷包软件,或者优博讯dt50顺丰刷机包
  • ¥20 C,有个译码器,换了信道就跑不出原来数据
  • ¥15 MIMIC数据库安装问题
  • ¥60 基于JTag协议开发Fpga下载器上位机,哪位大🐂有偿指导?
  • ¥20 全书网Java爬取数据
  • ¥15 怎么获取红包封面的原始链接,并且获取红包封面序列号
  • ¥100 微信小程序跑脚本授权的问题
  • ¥100 房产抖音小程序苹果搜不到安卓可以付费悬赏