-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
异常:ModuleNotFoundError: No module named 'wechat_ocr.ocr_manager'; 'wechat_ocr' is not a package是怎么回事? #13
Comments
把 包的路径使用 sys.path 添加进去试试 |
from wechat_ocr.ocr_manager import OcrManager, OCR_MAX_TASK_ID` 还是不行 |
直接把包的源码复制过来可行, 但为什么安装的包会出现这样的异常呀? |
是不是包名和本地文件同名了 |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Traceback (most recent call last):
File ".\wechat_ocr.py", line 4, in
from wechat_ocr.ocr_manager import OcrManager, OCR_MAX_TASK_ID
File "D:\project\wechat_ocr\wechat_ocr.py", line 4, in
from wechat_ocr.ocr_manager import OcrManager, OCR_MAX_TASK_ID
ModuleNotFoundError: No module named 'wechat_ocr.ocr_manager'; 'wechat_ocr' is not a package
The text was updated successfully, but these errors were encountered: