新开一坑,想在电脑跑跑SMAC。结果出现环境编译的问题。
主要是卡在安装dm-tree的时候出现问题。
网上也暂时没有相关的解决措施,先记录一下遇到的问题:
报错信息:
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--version']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dm-tree
Failed to build dm-tree
ERROR: Could not build wheels for dm-tree, which is required to install pyproject.toml-based projects
解决方式【2024年1月30日更新】
先使用pip安装dlb库,然后再安装dm-tree
pip install dlb
pip intstall dm-tree
解决措施可能与个人电脑相关,如果还是不能解决,请复制报错信息在评论区下面,我抽空看看。