-
找到service.py
C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\selenium\webdriver\common\service.py -
添加creationflags
在第77行添加:
creationflags=134217728
- 使用PyInstaller打包
pyinstaller -F -w -i xxx.ico xxx.py
找到service.py
C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\selenium\webdriver\common\service.py
添加creationflags
在第77行添加:
creationflags=134217728