[問題] pyinstaller mac 不同OS版本

作者: LiHowDie (我要堅強 我可以)   2020-09-16 15:52:07
我使用的 python 3.8 pyinstaller 4.0 mac os版本13.15
我編譯一個exe檔 給 朋友mac mini os 13.13 結果跑出以下錯誤
Traceback (most recent call last):
File "PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py", line 17, in <module>
File "/Users/nemopro/Desktop/PycharmProjects/yao/venv/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 493, in exec_module
File "multiprocessing/__init__.py", line 16, in <module>
File "/Users/nemopro/Desktop/PycharmProjects/yao/venv/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 493, in exec_module
File "multiprocessing/context.py", line 6, in <module>
File "/Users/nemopro/Desktop/PycharmProjects/yao/venv/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 493, in exec_module
File "multiprocessing/reduction.py", line 16, in <module>
File "/Users/nemopro/Desktop/PycharmProjects/yao/venv/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 493, in exec_module
File "socket.py", line 52, in <module>
File "/Users/nemopro/Desktop/PycharmProjects/yao/venv/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 493, in exec_module
File "selectors.py", line 12, in <module>
ImportError: dlopen(/var/folders/f6/7tdfbb8s4f5ch6f1zt0nkzdm0000gn/T/_MEIeZsPLx/select.cpython-38-darwin.so, 2): Symbol not found: ____chkstk_darwin
Referenced from: /var/folders/f6/7tdfbb8s4f5ch6f1zt0nkzdm0000gn/T/_MEIeZsPLx/select.cpython-38-darwin.so (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
in /var/folders/f6/7tdfbb8s4f5ch6f1zt0nkzdm0000gn/T/_MEIeZsPLx/select.cpython-38-darwin.so
[58218] Failed to execute script pyi_rth_multiprocessing
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
有查了一下
好像是說 編譯出來的exe 只能在相同或是更高的os版本中執行
不知道這方面有沒有大大有解呢?
作者: azuel (Observer)   2020-09-16 17:02:00
上面隔四篇有一樣的話題
作者: kenduest (小州)   2020-09-16 17:40:00
pyinstaller 4.0 官方說目前只有支援到 py3.7

Links booklink

Contact Us: admin [ a t ] ucptt.com