---
title: 环境依赖安装失败并提示Error: Failed building wheel for pyrfr的解决方法
description: "在安装smac时，使用pip install pyrfr安装依赖项pyrfr失败，提示Error: Failed building wheel for pyrfr。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2530/bds/kunpengbds_omniruntime_20_0543.html
sourcePath: /source/zh/kunpengboostkithistory/2530/bds/kunpengbds_omniruntime_20_0543.html
indexId: 887fb579a132cc658e337da239e63765a3ba85c7ab7523455ef7f4dfbd19c9e178
---
# 环境依赖安装失败并提示Error: Failed building wheel for pyrfr的解决方法

#### 问题现象描述

在安装smac时，使用pip install pyrfr安装依赖项pyrfr失败，提示Error: Failed building wheel for pyrfr。


#### 关键过程、根本原因分析

pip install的安装方式需要经历编译的过程，而当前环境可能缺少编译所需的依赖，导致编译过程失败。


#### 结论、解决方案以及效果

推荐使用Conda管理环境和依赖，避免手动编译。Conda通常会直接在所配置的源中寻找已经编译完成的可用二进制包进行安装，避免使用pip install时需要经历编译过程。
