Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
967 views
in Technique[技术] by (71.8m points)

pyinstaller - Can't create an exe file for PyQt

I′m trying to create an executable (.exe) file by my appplication code. I′m using PySide2 library.

And trying to create the executable with the pyinstaller tool and cx_Freeze too.

When I′m using pyinstaller tool have this warnings:

missing module named _posixshmem - imported by multiprocessing.resource_tracker (conditional), 

multiprocessing.shared_memory (conditional)

missing module named 'org.python' - imported by copy (optional), xml.sax (delayed, conditional)

missing module named _scproxy - imported by urllib.request (conditional)

missing module named termios - imported by tty (top-level), getpass (optional)

missing module named pwd - imported by posixpath (delayed, conditional), shutil (optional), tarfile (optional), pathlib (delayed, conditional, optional), subprocess (optional), http.server (delayed, optional), webbrowser (delayed), netrc (delayed, conditional), getpass (delayed), distutils.util (delayed, conditional, optional)

missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional)

missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level)

missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level)

missing module named _posixsubprocess - imported by subprocess (optional), multiprocessing.util (delayed)

missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level)
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level)

missing module named pep517 - imported by importlib.metadata (delayed)

missing module named posix - imported by os (conditional, optional), shutil (conditional)

missing module named resource - imported by posix (top-level), test.support (delayed, conditional, optional)

missing module named grp - imported by shutil (optional), tarfile (optional), pathlib (delayed, optional), subprocess (optional)

missing module named asyncio.DefaultEventLoopPolicy - imported by asyncio (delayed, conditional), asyncio.events (delayed, conditional)

missing module named vms_lib - imported by platform (delayed, optional)

missing module named java - imported by platform (delayed)

missing module named _winreg - imported by platform (delayed, optional)

missing module named readline - imported by cmd (delayed, conditional, optional), code (delayed, conditional, optional), pdb (delayed, optional)

missing module named org - imported by pickle (optional)

missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level)

missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level)

missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)

missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)

And when I try to execute the .exe file anything happens, or a message box appears saying that a problem occured, and can't launch app.

question from:https://stackoverflow.com/questions/65952929/cant-create-an-exe-file-for-pyqt

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...