ERROR:root:Start service error [‘all’]: No module named ‘pwd’

我在windows环境下运行python main.py start的时候出现了下面的错误,我想问下怎么解决的呢
E:\MaxKB-main>python main.py start
Building prefix dict from the default dictionary …
DEBUG:jieba:Building prefix dict from the default dictionary …
Loading model from cache C:\Users\yy\AppData\Local\Temp\jieba.cache
DEBUG:jieba:Loading model from cache C:\Users\yy\AppData\Local\Temp\jieba.cache
Loading model cost 0.393 seconds.
DEBUG:jieba:Loading model cost 0.393 seconds.
Prefix dict has been built successfully.
DEBUG:jieba:Prefix dict has been built successfully.
Operations to perform:
Apply all migrations: application, contenttypes, dataset, django_apscheduler, django_celery_beat, embedding, function_lib, setting, users
Running migrations:
No migrations to apply.
Your models in app(s): ‘dataset’, ‘function_lib’ have changes that are not yet reflected in a migration, and so won’t be applied.
Run ‘manage.py makemigrations’ to make new migrations, and then re-run ‘manage.py migrate’ to apply them.
ERROR:root:Start service error [‘all’]: No module named ‘pwd’

windows环境没有pwd库,使用 python main.py dev 命令启动。

解决了吗?麻烦说下怎么处理的,我也遇到这样的问题了 :sweat_smile:

windows环境没有pwd库,使用 python main.py dev 命令启动。

你好,能给一下python后端所用到的三方库和其版本号吗

windows没有pwd库,装不了,用python main.py dev启动就不会使用pwd库了。

我想看一下其他三方库的版本号,比如pydantic

Python版本是3.11.10,一般使用跟Python版本兼容的库版本即可。