有没有办法将Python 3.4程序编译成exe? py2exe,pyinstaller或cx-freeze除外

问题描述 投票:0回答:1

我已编码selenium Python脚本,现在我想将其编译为exe文件,以便它可以在没有安装Python的计算机上运行

我试图安装cx-freeze和pyinstaller但是没能这样做,并且无法找到我在安装这些模块时遇到的错误的补丁

我已经安装了py2exe但它无法将selenium Python转换为exe

每当我执行时,我都会收到错误信息

我想使用chromedriver,这是我得到的错误

FileNotFoundError: [Errno 2] No such file or directory: 'selenium\\webdriver\\re
mote\\getAttribute.js'
python python-3.x selenium python-3.5
1个回答
0
投票

您必须手动复制项目根目录中的selenium文件夹(这是消息所说的),因为它包含无法编译的内容(例如getAttribute.js)

© www.soinside.com 2019 - 2024. All rights reserved.