在食谱 Yocto 项目中使用 pip install 命令

use pip install command in recipes Yocto Project

我需要使用此站点上的现有库https://pypi.python.org/pypi/SpeechRecognition/

库呈现格式压缩 SpeechRecognition-3.4。3.tar.gz

我可以使用

pip install SpeechRecognition

在覆盖函数中,例如 do_fetch , do_install 在配方文件中 ?

在镜像中安装这个库

使用inherit pypi instead.Quite 可能您还想使用setuptools,即

 inherit pypi setuptools

参见 python-flask 食谱示例:python-flask_0.10.1.bb