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

关于pip配置环境的一点心得 #45

Open
frozenbird07 opened this issue May 13, 2023 · 0 comments
Open

关于pip配置环境的一点心得 #45

frozenbird07 opened this issue May 13, 2023 · 0 comments

Comments

@frozenbird07
Copy link

奋战了整整一个晚上,终于运行起来了,下面来讲讲pip配置虚拟环境遇到的一些坑,也希望能帮到后来下载项目的同学们:
cuda和pytorch、torchvision:我用的分别为11.7和1.13.1和0.14.1,显卡3060ti,一开始装的项目推荐配置cuda10.2,结果运行时cuda提示算力不匹配,可以去nivdia官网或者直接百度一下你的显卡型号对应算力,不过这里可以直接装11.0以上版本,11.0以上增加了对新显卡算力的支持。
nvidia-pyindex,polygraphy安装失败,这里我是pip版本问题,更新到最新pip(23.1)反而无法安装,最后降级20.1后安装成功
lap安装失败,这里卡了半天,网上搜到的解决方法都不管用,一是用conda安装(我pip虚拟环境都配到这了要从头来?)二是pip从git上拉取安装,我科学上网也面临连接失败后,想到了一个方法,直接复制项目地址从git上克隆到本地,然后按照里面的readme本地构建安装。虚拟环境下cd进入lap文件夹,运行两行命令:

python setup.py build
python setup.py install

然后就能安装上了,亲测有效
然后基本就能愉快玩耍哩>=<

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

1 participant