赞
踩
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
我是这样解决的,一开始复制最下面的错误subprocess.CalledProcessError找了好久解决方法没有解决,后来干脆就把报错都复制下来,放到文本里,从上往下一点点看的错,发现上面的错改了之后,最下面也不报错误了。
小白一个,希望对您有帮助。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。