cxy-csx / pychatgpt

最通俗易懂的chatgpt对接公众号教程
34 stars 12 forks source link

缺失requirements.txt #8

Open acoreq opened 1 year ago

acoreq commented 1 year ago

随便做了个requirements.txt也不行 公众号提交接口的时候显示token验证失败

log文件错误信息如下: Traceback (most recent call last): File "/www/wwwroot/wechat-chatgpt-grp-py/main.py", line 1, in from flask import Flask, request ModuleNotFoundError: No module named 'flask' unable to load app 0 (mountpoint='') (callable not found or import error) no app loaded. going in full dynamic mode WARNING: you are running uWSGI as root !!! (use the --uid flag) uWSGI is running in multiple interpreter mode

感觉是flask没有起来,或者是python有问题?

acoreq commented 1 year ago

以上问题已经搞定!!!! 给后来者补充两点: 1.requirements.txt无所谓 2.python项目管理器里一定要装模块!装模块!装模块!看errlog就知道了