方法:auto-py-to-exe
1、安装
pip3 install auto-py-to-exe
PS E:\my selfwork> pip3 install auto-py-to-exe
Collecting auto-py-to-exeDownloading auto_py_to_exe-2.43.3-py2.py3-none-any.whl (187 kB)|████████████████████████████████| 187 kB 160 kB/s
Collecting Eel>=0.11.0Downloading Eel-0.16.0.tar.gz (24 kB)
Collecting pyinstaller>=5.8.0Downloading pyinstaller-6.5.0-py3-none-win_amd64.whl (1.3 MB)|████████████████████████████████| 1.3 MB 100 kB/s
Collecting requestsDownloading requests-2.31.0-py3-none-any.whl (62 kB)|████████████████████████████████| 62 kB 84 kB/s
Collecting bottleDownloading bottle-0.12.25-py3-none-any.whl (90 kB)|████████████████████████████████| 90 kB 82 kB/s
Collecting bottle-websocketDownloading bottle-websocket-0.2.9.tar.gz (2.0 kB)
Collecting futureDownloading future-1.0.0-py3-none-any.whl (491 kB)|████████████████████████████████| 491 kB 71 kB/s
Collecting pyparsingDownloading pyparsing-3.1.2-py3-none-any.whl (103 kB)|████████████████████████████████| 103 kB 87 kB/s
Collecting whichcraftDownloading whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Collecting pyinstaller-hooks-contrib>=2024.3Downloading pyinstaller_hooks_contrib-2024.3-py2.py3-none-any.whl (329 kB)|████████████████████████████████| 329 kB 70 kB/s
Collecting importlib-metadata>=4.6; python_version < "3.10"Downloading importlib_metadata-7.1.0-py3-none-any.whl (24 kB)
Collecting pywin32-ctypes>=0.2.1; sys_platform == "win32"Downloading pywin32_ctypes-0.2.2-py3-none-any.whl (30 kB)
Requirement already satisfied: setuptools>=42.0.0 in c:\program files\python39\lib\site-packages (from pyinstaller>=5.8.0->auto-py-to-exe) (49.2.1)
Collecting pefile>=2022.5.30; sys_platform == "win32"Downloading pefile-2023.2.7-py3-none-any.whl (71 kB)|████████████████████████████████| 71 kB 37 kB/s
Collecting packaging>=22.0Downloading packaging-24.0-py3-none-any.whl (53 kB)|████████████████████████████████| 53 kB 61 kB/s
Collecting altgraphDownloading altgraph-0.17.4-py2.py3-none-any.whl (21 kB)
Collecting certifi>=2017.4.17Downloading certifi-2024.2.2-py3-none-any.whl (163 kB)|████████████████████████████████| 163 kB 48 kB/s
Collecting urllib3<3,>=1.21.1Downloading urllib3-2.2.1-py3-none-any.whl (121 kB)|████████████████████████████████| 121 kB 55 kB/s
Requirement already satisfied: idna<4,>=2.5 in c:\users\huangling.xgd\appdata\roaming\python\python39\site-packages (from requests->auto-py-to-exe)
(2.10)
Collecting charset-normalizer<4,>=2Downloading charset_normalizer-3.3.2-cp39-cp39-win_amd64.whl (100 kB)|████████████████████████████████| 100 kB 86 kB/s
Collecting gevent-websocketDownloading gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Collecting zipp>=0.5Downloading zipp-3.18.1-py3-none-any.whl (8.2 kB)
Collecting geventDownloading gevent-24.2.1-cp39-cp39-win_amd64.whl (1.5 MB)|████████████████████████████████| 1.5 MB 103 kB/s
Requirement already satisfied: zope.interface in c:\users\huangling.xgd\appdata\roaming\python\python39\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel>=0.11.0->auto-py-to-exe) (5.2.0)
Collecting greenlet>=2.0.0; platform_python_implementation == "CPython" and python_version < "3.11"Downloading greenlet-3.0.3-cp39-cp39-win_amd64.whl (290 kB)|████████████████████████████████| 290 kB 128 kB/s
Collecting cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32"Downloading cffi-1.16.0-cp39-cp39-win_amd64.whl (181 kB)|████████████████████████████████| 181 kB 76 kB/s
Collecting zope.eventDownloading zope.event-5.0-py3-none-any.whl (6.8 kB)
Collecting pycparserDownloading pycparser-2.22-py3-none-any.whl (117 kB)|████████████████████████████████| 117 kB 68 kB/s
Using legacy 'setup.py install' for Eel, since package 'wheel' is not installed.
Using legacy 'setup.py install' for bottle-websocket, since package 'wheel' is not installed.
Installing collected packages: bottle, greenlet, pycparser, cffi, zope.event, gevent, gevent-websocket, bottle-websocket, future, pyparsing, whichcraft, Eel, packaging, zipp, importlib-metadata, pyinstaller-hooks-contrib, pywin32-ctypes, pefile, altgraph, pyinstaller, certifi, urllib3, charset-normalizer, requests, auto-py-to-exeRunning setup.py install for bottle-websocket ... doneRunning setup.py install for Eel ... done
Successfully installed Eel-0.16.0 altgraph-0.17.4 auto-py-to-exe-2.43.3 bottle-0.12.25 bottle-websocket-0.2.9 certifi-2024.2.2 cffi-1.16.0 charset-normalizer-3.3.2 future-1.0.0 gevent-24.2.1 gevent-websocket-0.10.1 greenlet-3.0.3 importlib-metadata-7.1.0 packaging-24.0 pefile-2023.2.7 pycparser-2.22 pyinstaller-6.5.0 pyinstaller-hooks-contrib-2024.3 pyparsing-3.1.2 pywin32-ctypes-0.2.2 requests-2.31.0 urllib3-2.2.1 whichcraft-0.6.1 zipp-3.18.1 zope.event-5.0
WARNING: You are using pip version 20.2.4; however, version 24.0 is available.
You should consider upgrading via the 'c:\program files\python39\python.exe -m pip install --upgrade pip' command.