Python 当我执行pyinstaller>;发生错误
当我命令Python 当我执行pyinstaller>;发生错误,python,selenium-chromedriver,pyinstaller,exe,Python,Selenium Chromedriver,Pyinstaller,Exe,当我命令pyinstaller使exe文件如下 pyinstaller --onefile --add-binary "chromedriver.exe";"." tweet.py 然后错误发生了 PS C:\selenium> pyinstaller --onefile --add-binary "chromedriver.exe";"." tweet.py 위치 줄:1 문자:59 + pyinstall
pyinstaller
使exe文件如下
pyinstaller --onefile --add-binary "chromedriver.exe";"." tweet.py
然后错误发生了
PS C:\selenium> pyinstaller --onefile --add-binary "chromedriver.exe";"." tweet.py
위치 줄:1 문자:59
+ pyinstaller --onefile --add-binary "chromedriver.exe";"." tweet.py
+ ~~~~~~~~
식 또는 문에서 예기치 않은 'tweet.py' 토큰입니다.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
我相信这应该能解决问题
pyinstaller --onefile --add-binary "chromedriver.exe;." tweet.py
语法分析器将代码>视为一个标记,因此它引发了一个错误意外终止
,您必须将其包含在同一字符串中。在同一字符串中意味着什么?我必须在哪里写?这意味着你需要更改“chromedriver.exe”;“
到”chromedriver.exe;“
在命令中。非常感谢。原始错误已解决!!但是,“chromedriver.exe;”之后发生另一个错误,我找不到exe文件。此外,在生成exe文件的过程中,以下警告显示有太多文件缺少名为的模块,然后没有exe文件存在最后一个描述显示“TypeError:需要整数(获取类型字节)”@AngdreLee如果生成成功,exe文件将位于dist
文件夹中。您指出的错误可能来自您的脚本。我将需要更多的信息,以能够告诉这个问题,我建议你问一个新的问题,包括所有的细节。