我用nuitka将我的项目解压缩为exe文件。该文件在Windows 10中工作,但我在Windows 7中遇到以下错误。我如何修复它?我不知道我犯了什么错误
e 180, in <module pyautogui>
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>"
line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "C:\Users\Windows\AppData\Local\Temp\ONEFIL~1\pyscreeze\__init__.py", lin- e 10, in <module pyscreeze>
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>"
line 1149, in __find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "C:\Users\Windows\AppData\Local\Temp\ONEFIL~1\subprocess.py", line 58, in <module>
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>' line 1140, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1080, in _find_spec File "<frozen importlib. bootstrap_external", line 1504, in find_spec File "<frozen importlib._bootstrap_external>" line 1473, in _get_spec
File "<frozen importlib._bootstrap_external>", line 1439, in _path_importer_ca che
File "<frozen importlib._bootstrap_external>", line 1415, in _path_hooks File "<frozen importlib._bootstrap_external>", line 1700, in path_hook_for_Fil eFinder
File "<frozen importlib._bootstrap_external>", line 1570, in _init. File "<frozen importlib._bootstrap_external>", line 176, in _path_isabs
SystemError: Negative size passed to PyUnicode_New
字符串
1条答案
按热度按时间tf7tbtn21#
尝试将您的python版本更改为<3.9。如果您同时使用两个python版本,请确保使用
py -3.9 -m command-to-make-exe