【发布时间】:2022-01-16 15:12:39
【问题描述】:
我正在使用硒。脚本在:
C:\Users\User\Desktop\Data Analytics Arg\Proyectos\datademia\Py_install\py_ejemplo.py . Venv is activated and chromedriver.exe is in C:\Users\User\Desktop\Data Analytics Arg\Proyectos\datademia\Py_install\chromedriver.exe
脚本运行完美。然后我通过终端创建了一个唯一的 .exe 文件:
pyinstaller --add-data "chromedriver.exe;." --windowed --onefile py_ejemplo.py
文件夹已正确创建(build 和 dist)。 .exe 文件 (py_ejemplo.exe) 已创建,但当我尝试运行它时,我收到以下消息:
但没有为我工作...有人可以帮助我吗?不知道怎么回事……
提前致谢
【问题讨论】:
标签: selenium-webdriver pyinstaller file-not-found getattribute