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个回答

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

niiick
niiick 回复谁用了我名字: windows XP最高支持3.4.4
5 个月之前 回复
weixin_38011499
谁用了我名字 是什么版本的问题 我的3.7.2版本也是类似的问题呢
6 个月之前 回复

pyinstaller -F -p (导的包存放路径) XX.py

最好是用什么版本的呢?

xp不支持python3

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐