Closed Fengshihao1 closed 1 year ago
给个完整的编译方式和报错信息吧。
编译方式: pip install -v . Using pip 22.2.2 from /home/fengshihao/anaconda3/envs/V2B_2/lib/python3.7/site-packages/pip (python 3.7)
报错信息: ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/fengshihao/anaconda3/envs/V2B_2/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1672, in _run_ninja_build env=env) File "/home/fengshihao/anaconda3/envs/V2B_2/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
Traceback (most recent call last):
File "
我刚才用nvcc -V查看服务器cuda版本是7.5,但是nvidia-smi命令查出来的是10.2,是因为这个问题导致编译不成功吗?
nvidia-smi显示的应该是驱动支持的最高cuda版本,你的真实cuda版本应该是7.5, 确实太低了。建议用10.2.
nvidia-smi显示的应该是驱动支持的最高cuda版本,你的真实cuda版本应该是7.5, 确实太低了。建议用10.2.
嗯,好的。非常感谢您的解答。
您好!clone https://github.com/Abyssaledge/TorchEx代码后,在编译的时候一直报错安装不成功。请问是有什么依赖包吗?我的环境是python=3.7,cuda10.2,pytorch1.9.1
报错如下:
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.