这给了我一个语法错误,但是如果我像往常一样运行脚本,它将运行良好。另外,如果有帮助,我正在使用Python 3.7
这是给我的错误:
Traceback (most recent call last):
File "c:\users\user\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\user\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts\pyinstaller.exe\__main__.py", line 5, in <module>
File "c:\users\nxf46749\appdata\local\programs\python\python37\lib\site-packages\PyInstaller\__init__.py", line 16, in <module>
from . import compat
File "c:\users\user\appdata\local\programs\python\python37\lib\site-packages\PyInstaller\compat.py", line 211, in <module>
from win32ctypes.pywin32 import pywintypes # noqa: F401
File "c:\users\user\appdata\local\programs\python\python37\lib\site-packages\win32ctypes\pywin32\__init__.py", line 21, in <module>
from win32ctypes.pywin32 import win32api
File "c:\users\user\appdata\local\programs\python\python37\lib\site-packages\win32ctypes\pywin32\win32api.py", line 23, in <module>
from win32ctypes.core import _common, _kernel32, _backend
File "c:\users\user\appdata\local\programs\python\python37\lib\site-packages\win32ctypes\core\__init__.py", line 33, in <module>
from .ctypes import _advapi32, _common, _kernel32
File "c:\users\user\appdata\local\programs\python\python37\lib\site-packages\win32ctypes\core\ctypes\_advapi32.py", line 134