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:
-
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 includepython-dev
andpython3-dev
. You can install them using the following command:sudo apt-get install python-dev python3-dev ```
-
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
-
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.
-
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.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 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