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

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 关于#自动化#的问题:如何通过电脑控制多相机同步拍照或摄影(相机或者摄影模组数量大于60),并将所有采集的照片或视频以一定编码规则存放至规定电脑文件夹内
  • ¥20 深信服vpn-2050这台设备如何配置才能成功联网?
  • ¥15 Arduino的wifi连接,如何关闭低功耗模式?
  • ¥15 Android studio 无法定位adb是什么问题?
  • ¥15 angular项目错误
  • ¥20 需要帮我远程操控一下,运行一下我的那个代码,我觉得我无能为力了
  • ¥20 有偿:在ubuntu上安装arduino以及其常用库文件。
  • ¥15 请问用arcgis处理一些数据和图形,通常里面有一个根据点划泰森多边形的命令,直接划的弊端是只能执行一个完整的边界,但是我们有时候会用到需要在有很多边界内利用点来执行划泰森多边形的命令
  • ¥30 在wave2foam中执行setWaveField时遇到了如下的浮点异常问题,请问该如何解决呢?
  • ¥750 关于一道数论方面的问题,求解答!(关键词-数学方法)