snowboy 无法 install

 

复制代码
 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.
复制代码

 

 

1
2
3
4
5
6
7
8
9
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:

     
    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:

     
    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:
       
      python setup.py build
      
    • After the build process completes, install the package using the following command:
       
      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.

posted @   aiplus  阅读(362)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
历史上的今天:
2020-08-30 第五周单元测验题英语教学与互联网 mooc
2020-08-30 第五周单元测验题
2020-08-30 第七单元《中国传统文化与管理》单元测试 mooc
2020-08-30 第六单元《管理学进展》单元测试 mooc
2020-08-30 mooc第四单元《管理团队》单元测试
2020-08-30 mooc第五单元《管理组织》单元测试
2012-08-30 Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
悬浮按钮示例
点击右上角即可分享
微信分享提示