遇到这种问题,一般都是包的版本问题

我的问题是Torch的版本低了,所以当我升级包之后,代码就可以正常运行了

升级包:pip install --upgrade xxxxx

升级包中出现报错:read time out 的问题
或者如图的错误

可以用:pip --default-timeout=100 install -U --upgrade xxxx

更多推荐

Process finished with exit code 132 (interrupted by signal 4: SIGILL)