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

已经安装了uvicorn 但是运行的时候却一直提示没有找到该模块 #690

Open
zning5506 opened this issue Jan 3, 2025 Discussed in #689 · 5 comments
Open
Assignees

Comments

@zning5506
Copy link

Discussed in #689

Originally posted by zning5506 January 3, 2025
已经安装了uvicorn ,pip show也show出来了,但是运行python openai_api_server.py却一直提示没有知道该模块,求指导一下,谢谢!
1735890505174

@sixsixcoder
Copy link
Collaborator

这种情况您退出所有虚拟环境,然后重启虚拟环境

@zning5506
Copy link
Author

这种情况您退出所有虚拟环境,然后重启虚拟环境

这个我计算机重启都试过了,虚拟环境新建一个也试过了

@sixsixcoder sixsixcoder self-assigned this Jan 6, 2025
@sixsixcoder
Copy link
Collaborator

图上有两个虚拟环境,这种deactivate都退出,在重新进入,或者你检查一些conda环境路径中有没有这个包

@zning5506
Copy link
Author

图上有两个虚拟环境,这种deactivate都退出,在重新进入,或者你检查一些conda环境路径中有没有这个包

怎么看出来是2个虚拟环境,不都是glm4_1么,麻烦指教一下,谢谢

@sixsixcoder
Copy link
Collaborator

图上有两个虚拟环境,这种deactivate都退出,在重新进入,或者你检查一些conda环境路径中有没有这个包

怎么看出来是2个虚拟环境,不都是glm4_1么,麻烦指教一下,谢谢

前面有两个括号,你用的是conda吗?先用conda deactivate 命令把环境退出了,然后再重新进
或者用conda env list 找到glm4_1环境的地址,然后找一下有没有uvicorn包

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

2 participants