如何安装轮子包
How to install wheel packages
我正在尝试在 Python 中安装 PocketSphinx。我正在尝试关注 Uberi speech recognition README,它询问以下内容:
PyAudio wheel packages for
common 64-bit Python versions on Windows and Linux are included for
convenience, under the third-party/
directory
in the repository root. To install, simply run pip install wheel
followed by pip install ./third-party/WHEEL_FILENAME
(replace pip
with pip3
if using Python 3) in the repository root
directory.
我不明白这里的说明。 FILE_NAME
指的是什么?这是什么 wheel
以及它与 PocketSphinx 有什么关系?
What FILE_NAME is this referring to?
存储库 third-party
文件夹中二进制包文件的文件名。例如 pocketsphinx-0.0.9-cp27-none-win_amd64.whl。您应该先签出存储库。
What is this 'wheel' and how does it relate to pocketsphix?
wheel 是一个 python 包管理器,用于安装二进制包。用于安装python二进制包。您可以在这里阅读更多内容:https://pypi.python.org/pypi/wheel
当您手动下载 PocketSphinx 包时,它必须在上述目录中创建一个带有 .whl
扩展名的 wheel 文件(执行实际工作的文件)。
现在,您需要在存储 .whl
扩展文件的目录中打开一个终端,在本例中为 third-party
.
一旦您确定终端将当前目录显示为 third-party
,请继续执行 wheel 文件的 pip 安装。
假设wheel文件的名字是PocketSphinx.whl
,
你会写:
pip install PocketSphinx.whl
如果满足所有要求,这将完成您的工作。
而且我觉得 wheel 文件的名称不会简单地是 PocketSphinx.whl
,它会很长且内容丰富,但它的扩展名总是 .whl
,通过你应该识别它。
编辑:
我去了你提供的link,这是你需要的wheel文件:
pocketsphinx-0.1.3-cp35-cp35m-win_amd64.whl
对于 python 3.5
或
pocketsphinx-0.1.3-cp27-cp27m-win_amd64.whl
对于 python 2.7
所以你的命令变成了
pip install pocketsphinx-0.1.3-cp35-cp35m-win_amd64.whl
或
pip install pocketsphinx-0.1.3-cp27-cp27m-win_amd64.whl
根据您的 python 版本。
我正在尝试在 Python 中安装 PocketSphinx。我正在尝试关注 Uberi speech recognition README,它询问以下内容:
PyAudio wheel packages for common 64-bit Python versions on Windows and Linux are included for convenience, under the
third-party/
directory in the repository root. To install, simply runpip install wheel
followed bypip install ./third-party/WHEEL_FILENAME
(replacepip
withpip3
if using Python 3) in the repository root directory.
我不明白这里的说明。 FILE_NAME
指的是什么?这是什么 wheel
以及它与 PocketSphinx 有什么关系?
What FILE_NAME is this referring to?
存储库 third-party
文件夹中二进制包文件的文件名。例如 pocketsphinx-0.0.9-cp27-none-win_amd64.whl。您应该先签出存储库。
What is this 'wheel' and how does it relate to pocketsphix?
wheel 是一个 python 包管理器,用于安装二进制包。用于安装python二进制包。您可以在这里阅读更多内容:https://pypi.python.org/pypi/wheel
当您手动下载 PocketSphinx 包时,它必须在上述目录中创建一个带有 .whl
扩展名的 wheel 文件(执行实际工作的文件)。
现在,您需要在存储 .whl
扩展文件的目录中打开一个终端,在本例中为 third-party
.
一旦您确定终端将当前目录显示为 third-party
,请继续执行 wheel 文件的 pip 安装。
假设wheel文件的名字是PocketSphinx.whl
,
你会写:
pip install PocketSphinx.whl
如果满足所有要求,这将完成您的工作。
而且我觉得 wheel 文件的名称不会简单地是 PocketSphinx.whl
,它会很长且内容丰富,但它的扩展名总是 .whl
,通过你应该识别它。
编辑:
我去了你提供的link,这是你需要的wheel文件:
pocketsphinx-0.1.3-cp35-cp35m-win_amd64.whl
对于 python 3.5
或
pocketsphinx-0.1.3-cp27-cp27m-win_amd64.whl
对于 python 2.7
所以你的命令变成了
pip install pocketsphinx-0.1.3-cp35-cp35m-win_amd64.whl
或
pip install pocketsphinx-0.1.3-cp27-cp27m-win_amd64.whl
根据您的 python 版本。