pyinstaller 将geckodriver.exe打包进去
时间: 2023-09-08 07:13:59 浏览: 106
PyInstaller打包时,默认会将Python脚本及其相关的依赖文件打包进去,但不会自动将geckodriver.exe这类驱动文件打包进去。你需要手动将geckodriver.exe文件复制到dist文件夹下,确保它与打包后的exe文件处于同一目录下。这样,在运行打包后的exe文件时,它会在运行时自动查找并使用dist文件夹下的geckodriver.exe。引用<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [使用PyInstaller打包Python+Selenium为exe文件](https://blog.csdn.net/qeisenberg/article/details/112778781)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文