当前位置:   article > 正文

安装spconv报subprocess.CalledProcessError: Command ‘[‘cmake‘, ‘--build‘, ‘.‘, ‘--config‘, ‘Release‘, ‘-_subprocess.calledprocesserror: command '['cmake',

subprocess.calledprocesserror: command '['cmake', '--build', '.', '--config

make: *** [Makefile:136: all] Error 2
Traceback (most recent call last):
File “setup.py”, line 96, in
setup(
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/init.py”, line 107, in setup
return distutils.core.setup(**attrs)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/_distutils/core.py”, line 185, in setup
return run_commands(dist)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/_distutils/core.py”, line 201, in run_commands
dist.run_commands()
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 969, in run_commands
self.run_command(cmd)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/dist.py”, line 1234, in run_command
super().run_command(command)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 988, in run_command
cmd_obj.run()
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/wheel/bdist_wheel.py”, line 325, in run
self.run_command(“build”)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/_distutils/cmd.py”, line 318, in run_command
self.distribution.run_command(command)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/dist.py”, line 1234, in run_command
super().run_command(command)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 988, in run_command
cmd_obj.run()
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/_distutils/command/build.py”, line 131, in run
self.run_command(cmd_name)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/_distutils/cmd.py”, line 318, in run_command
self.distribution.run_command(command)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/dist.py”, line 1234, in run_command
super().run_command(command)
File “/root/miniconda3/envs/your37/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 988, in run_command
cmd_obj.run()
File “setup.py”, line 48, in run
self.build_extension(ext)
File “setup.py”, line 92, in build_extension
subprocess.check_call([‘cmake’, ‘–build’, ‘.’] + build_args, cwd=self.build_temp)
File “/root/miniconda3/envs/your37/lib/python3.8/subprocess.py”, line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘–build’, ‘.’, ‘–config’, ‘Release’, ‘–’, ‘-j4’]’ returned non-zero exit

解决方法

安装boost相关依赖

// 如果你正在使用Ubuntu操作系统,那么可以直接通过以下命令安装boost相关的依赖:
sudo apt-get install libboost-all-dev
  • 1
  • 2

我是这样解决的,一开始复制最下面的错误subprocess.CalledProcessError找了好久解决方法没有解决,后来干脆就把报错都复制下来,放到文本里,从上往下一点点看的错,发现上面的错改了之后,最下面也不报错误了。
小白一个,希望对您有帮助。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/218741
推荐阅读
相关标签
  

闽ICP备14008679号