Skip to content
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

streamlit run chatglm3_demo.py 执行后报错,No module named 'chatglm_cpp._C' ,是什么原因呢? #261

Open
gaoxiaoen opened this issue Feb 2, 2024 · 3 comments

Comments

@gaoxiaoen
Copy link

No description provided.

@Esrappelt
Copy link

pip install -U chatglm-cpp

@loli0123456789
Copy link

pip install .,也可以

@loli0123456789
Copy link

是通过openai_api.py来做APIServer报错的吧?
那么可以尝试给chatglm_cpp改名或者在chatglm_cpp下执行命令,都是可以解决问题的。
问题应该是chatglm_cpp.openai_api有冲突,一个之前pip install的时候已经有chatglm_cpp,而当前文件夹又是chatglm_cpp,下面的__init__.py就引用了chatglm_cpp._C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants