【发布时间】:2019-02-16 21:55:13
【问题描述】:
这个问题已经出现了很多次,但不幸的是,没有一个是我的情况,而是一个(起初)。 How to use pyInstaller to completely pack all the necessary Library?
我使用多个库在 Python 中编写了一个脚本,其中一个是 webbot 模块。我设法将脚本转换为 .exe 文件,但是当我尝试运行 .exe 时出现以下错误:
Traceback (most recent call last):
File "TM.py", line 132, in <module>
File "site-packages\webbot\webbot.py", line 45, in __init__
FileNotFoundError: [WinError 3]The system could not find the path...
然后我按照上面链接中的说明进行操作。
然后我收到以下错误消息:
Traceback (most recent call last):
File "TM3.py", line 12, in <module>
AttributeError: module 'webbot' has no attribute 'data'
[9292] Failed to execute script TM3
第 12 行在哪里:
webbot.data.path.append(r'webbot_master_data')
有人可以帮我吗?
提前致谢
使用:
窗口:10
PyInstaller:3.4
Python:3.6.5
【问题讨论】:
标签: python python-3.x pyinstaller attributeerror