Soulter / AstrBot

QQ、Telegram等多平台兼容的支持 LLM 聊天的机器人平台。支持自定义插件扩展。
GNU Affero General Public License v3.0
608 stars 59 forks source link

cmd运行源码 #53

Closed YSDiting closed 1 year ago

YSDiting commented 1 year ago

Traceback (most recent call last): File "main.py", line 6, in import requests,json ModuleNotFoundError: No module named 'requests'

Soulter commented 1 year ago

定位到项目目录下然后pip install -r requirements.txt

YSDiting commented 1 year ago

程序PID:10904 Traceback (most recent call last): File "C:\Users\DiTing\Desktop\QQChannelChatGPT-master\QQChannelChatGPT-master\main.py", line 186, in main(loop, bot_event) File "C:\Users\DiTing\Desktop\QQChannelChatGPT-master\QQChannelChatGPT-master\main.py", line 13, in main import cores.qqbot.core as qqBot File "C:\Users\DiTing\Desktop\QQChannelChatGPT-master\QQChannelChatGPT-master\cores\qqbot\core.py", line 18, in from addons.baidu_aip_judge import BaiduJudge File "C:\Users\DiTing\Desktop\QQChannelChatGPT-master\QQChannelChatGPT-master\addons\baidu_aip_judge.py", line 1, in from aip import AipContentCensor File "C:\Users\DiTing\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\aip__init__.py", line 7, in from .nlp import AipNlp File "C:\Users\DiTing\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\aip\nlp.py", line 16, in import chardet ModuleNotFoundError: No module named 'chardet'

Soulter commented 1 year ago

pip install chardet