Angdre
Angdre

Reputation: 13

when I excute pyinstaller > error happens

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

Upvotes: 1

Views: 255

Answers (1)

astqx
astqx

Reputation: 2096

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.

Upvotes: 1

Related Questions