ChatGLM-6B icon indicating copy to clipboard operation
ChatGLM-6B copied to clipboard

限定依赖库的版本:修正安装环境时的依赖报错问题。

Open vimfun opened this issue 1 year ago • 2 comments

本地安装时多次报错,限定了这两个依赖库的版本之后,终于成功了!

此PR 希望能帮助到被python依赖困扰的朋友们。

🌻


When I was installing the deps of this project, some error popup. I fixed some versions of the deps, then succeed.

I hope this PR will help some other person who are struggling with the deps problems.

Good luck, everybody!!

vimfun avatar Mar 22 '23 10:03 vimfun

巧的是,我用的torch就是2.0.0, gradio就是3.23.0。暂时还没有发现依赖冲突的问题,你这边的报错是啥?

csyourui avatar Mar 22 '23 10:03 csyourui

我的本地环境下用torch 2.0+gradio 3.23.0 没有问题。建议确认你安装torch时是不是下载到了cpu版本,而不是cuda集成版,参考: https://github.com/pytorch/pytorch/issues/30664#issuecomment-757431613

TheReluctantHeroes avatar Mar 23 '23 09:03 TheReluctantHeroes

我的本地环境下用torch 2.0+gradio 3.23.0 没有问题。建议确认你安装torch时是不是下载到了cpu版本,而不是cuda集成版,参考: pytorch/pytorch#30664 (comment)

谢谢,那我就撤回这个PR了

vimfun avatar Mar 25 '23 07:03 vimfun

我用的是docker python:3.10 下运行的

vimfun avatar Mar 25 '23 07:03 vimfun