我今天尝试运行 Python .exe 文件并收到以下错误!有人知道问题出在哪里以及解决方法吗?
File "report-auto-final-v2.7.py", line 60, in <module>
File "selenium\webdriver\chrome\webdriver.py", line 45, in __init__
File "selenium\webdriver\chromium\webdriver.py", line 53, in __init__
File "selenium\webdriver\common\service.py", line 105, in start
File "selenium\webdriver\common\service.py", line 206, in _start_process
File "subprocess.py", line 966, in __init__
File "subprocess.py", line 1435, in _execute_child
OSError: [WinError 193] %1 is not a valid Win32 application
[10220] Failed to execute script 'report-auto-final-v2.7' due to unhandled exception!
其中一个可以回答您的问题吗,因为第一个链接中的错误似乎是相同的?
OSError:[WinError 193] %1 不是有效的 Win32 应用程序
Python Ctypes - 加载 dll 会抛出 OSError:[WinError 193] %1 不是有效的 Win32 应用程序