when I excute pyinstaller > error happens

Viewed 150

when I command pyinstaller to make exe file like this

pyinstaller --onefile --add-binary "chromedriver.exe";"." tweet.py

then error happens.

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
1 Answers

I believe this should solve it

pyinstaller --onefile --add-binary "chromedriver.exe;." tweet.py

; was being treated as a token by the parser and so it raised an error UnexpectedToken, you have to include it within the same string.

Related