本文介绍了Python 3.6:如何安装橡皮筋?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用这个 功能,我正在尝试使用 pip 安装橡皮筋,如下所示:pip install Rubberband

I want to use this function, and I'm trying to install rubberband using pip as the following: pip install rubberband

但是,它引发了以下错误:橡皮筋的构建轮失败"

But, it raises the following error: "Failed building wheel for rubberband"

而且我无法在我的项目中使用 Python 3.5.那么,如何安装橡皮筋?

And I can't use Python 3.5 in my project. So, how to install rubberband?

附言我的操作系统是 Windows 10,我有 python 3.6.

P.S. My OS is Windows 10, and I have python 3.6 on it.

推荐答案

您指向的文档是项目的文档 pyrubberband,而不是 rubberband.所以用 pip install pyrubberband 安装它.

The docs you pointed to are the docs for the project pyrubberband, not rubberband. So install it with pip install pyrubberband.

至于 rubberband:你可能需要一个 C/C++ 编译器来安装它.

As for rubberband: you probably need a C/C++ compiler to install it.

更新.pyrubberbandrubberband 的 Python 包装器.您需要安装它,请参阅https://breakfastquay.com/rubberband/index.html

Upd. pyrubberband is a Python wrapper for rubberband. You need to install it, see https://breakfastquay.com/rubberband/index.html

这篇关于Python 3.6:如何安装橡皮筋?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-14 11:20