pip install -i https://pypi.tuna.tsinghua.edu.cn/simple snowboy
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://www.piwheels.org/simple
WARNING: Keyring is skipped due to an exception: Failed to unlock the collection!
Collecting snowboy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/86/fc/3a13408cb3b32abff1b0539f44fca02ca378d9077b11f0c95674f278f3de/snowboy-1.2.0b1.tar.gz (5.0 MB)
Requirement already satisfied: PyAudio in /usr/local/lib/python3.9/dist-packages (from snowboy) (0.2.13)
Building wheels for collected packages: snowboy
Building wheel for snowboy (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sc7hxgzh/snowboy_edd1aa31c3cb4f619ea678a7df0e2db0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sc7hxgzh/snowboy_edd1aa31c3cb4f619ea678a7df0e2db0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-0vqgy7fv
cwd: /tmp/pip-install-sc7hxgzh/snowboy_edd1aa31c3cb4f619ea678a7df0e2db0/
Complete output (12 lines):
running bdist_wheel
running build
Compiling snowboy...
g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -shared snowboy-detect-swig.o \
../..//lib/ubuntu64/libsnowboy-detect.a -L/usr/lib/python2.7/config-aarch64-linux-gnu -L/usr/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
snowboy-detect-swig.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
make: *** [Makefile:65: _snowboydetect.so] Error 1
creating build
creating build/lib
creating build/lib/snowboy
error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file
----------------------------------------
ERROR: Failed building wheel for snowboy
Running setup.py clean for snowboy
Failed to build snowboy
Installing collected packages: snowboy
Running setup.py install for snowboy ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sc7hxgzh/snowboy_edd1aa31c3cb4f619ea678a7df0e2db0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sc7hxgzh/snowboy_edd1aa31c3cb4f619ea678a7df0e2db0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-23c0i14u/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.9/snowboy
cwd: /tmp/pip-install-sc7hxgzh/snowboy_edd1aa31c3cb4f619ea678a7df0e2db0/
Complete output (25 lines):
running install
/home/pi/.local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!! ********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
******************************************************************************** !!
self.initialize_options()
running build
Compiling snowboy...
g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -shared snowboy-detect-swig.o \
../..//lib/ubuntu64/libsnowboy-detect.a -L/usr/lib/python2.7/config-aarch64-linux-gnu -L/usr/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
snowboy-detect-swig.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
make: *** [Makefile:65: _snowboydetect.so] Error 1
creating build
creating build/lib
creating build/lib/snowboy
error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sc7hxgzh/snowboy_edd1aa31c3cb4f619ea678a7df0e2db0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sc7hxgzh/snowboy_edd1aa31c3cb4f619ea678a7df0e2db0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-23c0i14u/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.9/snowboy Check the logs for full command output.
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple snowboy
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://www.piwheels.org/simple
WARNING: Keyring is skipped due to an exception: Failed to unlock the collection!
Collecting snowboy
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/86/fc/3a13408cb3b32abff1b0539f44fca02ca378d9077b11f0c95674f278f3de/snowboy-1.2.0b1.tar.gz (5.0 MB)
|████████████████████████████████| 5.0 MB 64 kB/s
Requirement already satisfied: PyAudio in /usr/local/lib/python3.9/dist-packages (from snowboy) (0.2.13)
Building wheels for collected packages: snowboy
Building wheel for snowboy (setup.py) ... error

  

It seems there was an error while building the Snowboy package. This could be due to various reasons, such as missing dependencies or incompatible system configurations. To troubleshoot the issue, you can try the following steps:

  1. Ensure Dependencies are Installed:
    Snowboy has some dependencies that need to be installed before building the package. Make sure you have the necessary dependencies installed on your system. These dependencies include python-dev and python3-dev. You can install them using the following command:

     

    Copy

    sudo apt-get install python-dev python3-dev
    ```
  2. Upgrade Setuptools and Wheel:
    It's recommended to upgrade Setuptools and Wheel to the latest versions before building the package. You can use the following command to upgrade them:

     

    Copy

    pip install --upgrade setuptools wheel
  3. Build Snowboy from Source:
    Instead of installing the pre-built package, you can try building Snowboy from source. Here are the steps to do it:

    • Download the Snowboy source code from the official GitHub repository: https://github.com/Kitt-AI/snowboy
    • Extract the downloaded source code to a directory of your choice.
    • Open a terminal and navigate to the extracted Snowboy directory.
    • Run the following command to build the package:
       

      Copy

      python setup.py build
    • After the build process completes, install the package using the following command:
       

      Copy

      python setup.py install

    By building Snowboy from source, you may be able to overcome any issues encountered during the installation process.

  4. Seek Further Assistance:
    If the above steps do not resolve the issue, it may be helpful to seek assistance from the Snowboy community or the package maintainers. You can visit the Snowboy GitHub repository or their official website for more information and support options.

snowboy 无法 install的更多相关文章

  1. 离线语音Snowboy热词唤醒+ 树莓派语音交互实现开关灯

    离线语音Snowboy热词唤醒 语音识别现在有非常广泛的应用场景,如手机的语音助手,智能音响(小爱,叮咚,天猫精灵...)等. 语音识别一般包含三个阶段:热词唤醒,语音录入,识别和逻辑控制阶段. 热词 ...

  2. jetson nano 安装 snowboy 遇到的问题及处理

    Snowboy 是 KITT.AI 开发的一个高度可定制的热词检测引擎,当笔者的 jetson nano 加上话筒后,就立马尝试安装,但在安装过程中却发生了错误,所以把处理方式记录了下来以作备忘. 首 ...

  3. 树莓派上搭建唤醒词检测引擎 Snowboy

    Snowboy 是一款高度可定制的唤醒词检测引擎,可以用于实时嵌入式系统,并且始终监听(即使离线).当前,它可以运行在 Raspberry Pi.(Ubuntu)Linux 和 Mac OS X 系统 ...

  4. OEL上使用yum install oracle-validated 简化主机配置工作

    环境:OEL 5.7 + Oracle 10.2.0.5 RAC 如果你正在用OEL(Oracle Enterprise Linux)系统部署Oracle,那么可以使用yum安装oracle-vali ...

  5. org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=egmasDS

    17:34:37,235 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 17:34:37,281 INFO [ ...

  6. 如何使用yum 下载 一个 package ?如何使用 yum install package 但是保留 rpm 格式的 package ? 或者又 如何通过yum 中已经安装的package 导出它,即yum导出rpm?

    注意 RHEL5 和 RHEL6 的不同 How to use yum to download a package without installing it Solution Verified - ...

  7. Install and Configure SharePoint 2013 Workflow

    这篇文章主要briefly introduce the Install and configure SharePoint 2013 Workflow. Microsoft 推出了新的Workflow ...

  8. Basic Tutorials of Redis(1) - Install And Configure Redis

    Nowaday, Redis became more and more popular , many projects use it in the cache module and the store ...

  9. Hadoop学习日志- install hadoop

    资料来源 : http://www.tutorialspoint.com/hadoop/hadoop_enviornment_setup.htm Hadoop 安装 创建新用户 $ su passwo ...

  10. 关于bundle install 的一点补充

    在第一次运行bundle install之后,生成了Gemfile.lock文件,里面记录gem的具体版本号,按照官方文档说明,以后运行bundle install就不会再依据Gemfile,而是根据 ...

随机推荐

  1. 数位DP?记忆化罢了!

    我看了半天的数位 DP,DP 没学会,人倒是麻了. 解决什么 一般用于求解给你一个区间 \([l,r]\),问你其中满足条件的数有多少个. 这种题目还是蛮常见的,我们一般情况下暴力只能拿一少部分分,之 ...

  2. 温故知新,signalR、RSA加密、ConcurrentQueue队列

    这是一个用户密码异步加解密的Demo,包含了RSA非对称加密,ConcurrentQueue线程安全队列使用,signalR实时推送加解密信息等内容. 说在前面的话 距离上次更新已然快过去一年了,这中 ...

  3. H5 WebGL实现水波特效

    前言 零几年刚开始玩电脑的时候,经常在安装程序上看到一种水波特效,鼠标划过去的时候,就像用手在水面划过一样,感觉特别有意思.但是后来,就慢慢很少见过这种特效了.最近突然又想起了这种特效,于是开始折磨怎 ...

  4. 配置http协议访问Harbor镜像仓库

    解决http: server gave HTTP response to HTTPS client问题,此问题在上传与下载时均可能出现. 由于docker镜像拉取与推送服务使用的是https协议,但是 ...

  5. Federated Learning003

    联邦学习笔记--003 2022.11.28周一 今天主要学习了几篇优秀的博客,补充了一些知识. (一)联邦学习面临的挑战 非独立同分布的数据 有限通信带宽 不可靠和有限的设备 什么是Non-IID( ...

  6. 解决php中通过exec调用python脚本报ModuleNotFoundError错误

    背景 出于某些原因,我们有时会在PHP中通过exec来调用Python代码,有可能是某些功能只能用Python实现(或用Python实现比较方便),有可能是出于性能考虑(Python可以执行耗时任务) ...

  7. C语言指针--指针中的const

    文章目录 前言 一.const 1.什么是const 2.const的使用 二.const修饰一级指针 1.const放在 `*` 左边 2.const在`*`右边 三.const修饰二级指针 1.c ...

  8. SAP ABAP 使用GENIOS求解线性规划问题的简单例子

    主要内容来自Operations Research & ABAP ,结合我遇到的需求,做了一些修改. 需求:有BOX1和BOX2两种箱子,分别能包装不同数量的A物料和B物料,给出若干数量的A, ...

  9. [golang]字符串拼接

    前言 在go语言中,因为字符串只能被访问,不能被修改,所以进行字符串拼接的时候,golang都需要进行内存拷贝,造成一定的性能消耗. 方式1:操作符 + 特点:简单,可读性良好.每次拼接都会产生内存拷 ...

  10. Typescript - 索引签名

    1 索引签名概述 在 TypeScript 中,索引签名是一种定义对象类型的方式,它允许我们使用字符串或数字作为索引来访问对象的属性. 1.1 索引签名的定义和作用 索引签名通过以下语法进行定义: { ...