You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
简要说明、截图、复现步骤等,也可以是需求或想法
能够正常运行在检测到问题的时候,提示ModuleNotFoundError: No module named 'openai'
终端日志 (如有报错)
Please scan the QR code to log in.
Please press confirm on your phone.
Loading the contact, this may take a little while.
Login successfully as lm
Start auto replying.
[ERROR][2023-02-13 09:40:00][wechat_channel.py:116] - No module named 'openai'
Traceback (most recent call last):
File "/usr/local/python/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 112, in _do_send
reply_text = super().build_reply_content(query, context)
File "/usr/local/python/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/usr/local/python/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content
return bot_factory.create_bot("openAI").reply(query, context)
File "/usr/local/python/chatgpt-on-wechat/bot/bot_factory.py", line 24, in create_bot
from bot.openai.open_ai_bot import OpenAIBot
File "/usr/local/python/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 6, in
import openai
ModuleNotFoundError: No module named 'openai'
________________________________
发件人: zhayujie ***@***.***>
发送时间: Monday, February 13, 2023 9:57:29 AM
收件人: zhayujie/chatgpt-on-wechat ***@***.***>
抄送: Mrleft123 ***@***.***>; Author ***@***.***>
主题: Re: [zhayujie/chatgpt-on-wechat] 提示ModuleNotFoundError: No module named 'openai' (Issue #190)
你的 pip3 和 python3 不是同一个版本哈, 要看下openai安装在哪个python下,是否和你用来执行app.py的python是同一个版本。
see #88<#88>
―
Reply to this email directly, view it on GitHub<#190 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A4W2UOZRIFDZAVS6NTGW57LWXGIITANCNFSM6AAAAAAUZWFCUM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
前置确认
问题描述
终端日志 (如有报错)
Please scan the QR code to log in.
Please press confirm on your phone.
Loading the contact, this may take a little while.
Login successfully as lm
Start auto replying.
[ERROR][2023-02-13 09:40:00][wechat_channel.py:116] - No module named 'openai'
Traceback (most recent call last):
File "/usr/local/python/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 112, in _do_send
reply_text = super().build_reply_content(query, context)
File "/usr/local/python/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/usr/local/python/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content
return bot_factory.create_bot("openAI").reply(query, context)
File "/usr/local/python/chatgpt-on-wechat/bot/bot_factory.py", line 24, in create_bot
from bot.openai.open_ai_bot import OpenAIBot
File "/usr/local/python/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 6, in
import openai
ModuleNotFoundError: No module named 'openai'
环境
python3 -V
):Python 3.6.8pip3 -V
):pip 23.0 from /usr/local/lib/python3.10/site-packages/pip (python 3.10)
The text was updated successfully, but these errors were encountered: