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

海外执行requirement.py报错 capture_output和torch 1.7.0不适配cuda10.2 #143

Closed
ForeverNightmare opened this issue Oct 9, 2021 · 4 comments

Comments

@ForeverNightmare
Copy link

ForeverNightmare commented Oct 9, 2021

image

前面部分全部照抄,3.6版本的python,进了ysfish环境后,用的命令是 python requirements.py --cuda 102(我cuda是10.2版本)
自己也算是做机器学习的,各种轮子也用过不少,不过还真没碰到过这种情况,不知道发生了什么,海外应该不是网络问题吧?
最后只能自己手动对着里面的东西安装了,落泪

@ForeverNightmare
Copy link
Author

ForeverNightmare commented Oct 9, 2021

读了下代码,刚刚开了个新环境验证了一下,还真是把capture_output=False给注释掉就能跑了。。。3.6的subprocess里没这个关键词么

解决了之后果不其然最容易出问题的torch爆了,
image

1.7.0没有cuda10.2的版本,我来当小白鼠试试其他版本看看

@ForeverNightmare ForeverNightmare changed the title 海外执行requirement.py报错 capture_output 海外执行requirement.py报错 capture_output和torch 1.7.0不适配cuda10.2 Oct 9, 2021
@ForeverNightmare
Copy link
Author

安装了torch1.8.1和torchversion0.9.0后其他都很顺利,最后在钓鱼时报错list index out of range
image
试了多个鱼点都是同样的情况,这个我就真没法自己搞定了。。。

@wasabiegg
Copy link
Contributor

读了下代码,刚刚开了个新环境验证了一下,还真是把capture_output=False给注释掉就能跑了。。。3.6的subprocess里没这个关键词么

解决了之后果不其然最容易出问题的torch爆了, image

1.7.0没有cuda10.2的版本,我来当小白鼠试试其他版本看看

thanks for highlighting the issue. it's indeed true, subprocess has no capture_output parameter, fixed #145

@wasabiegg
Copy link
Contributor

安装了torch1.8.1和torchversion0.9.0后其他都很顺利,最后在钓鱼时报错list index out of range image 试了多个鱼点都是同样的情况,这个我就真没法自己搞定了。。。

#145

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