Comments (21)
先运行
pip install cmake
然后继续
from sherpa-ncnn.
已经运行了
from sherpa-ncnn.
还报错么
from sherpa-ncnn.
对的,还是报错
from sherpa-ncnn.
报什么错误呢
from sherpa-ncnn.
Defaulting to user installation because normal site-packages is not writeable
Collecting sherpa-ncnn
Using cached sherpa-ncnn-2.1.7.tar.gz (78 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\jun\appdata\roaming\python\python39\site-packages (from sherpa-ncnn) (1.26.3)
Building wheels for collected packages: sherpa-ncnn
Building wheel for sherpa-ncnn (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [65 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\sherpa_ncnn
copying sherpa-ncnn\python\sherpa_ncnn\recognizer.py -> build\lib.win-amd64-cpython-39\sherpa_ncnn
copying sherpa-ncnn\python\sherpa_ncnn_init_.py -> build\lib.win-amd64-cpython-39\sherpa_ncnn
running build_ext
Setting PYTHON_EXECUTABLE to D:\Anaconda3\python.exe
build command is:
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=D:\Anaconda3\python.exe -DCMAKE_INSTALL_PREFIX=C:\Users\JUN\AppData\Local\Temp\pip-i
nstall-985i10gf\sherpa-ncnn_ba8b4b28c1e341d5b0c5c9024ca193fc\build\lib.win-amd64-cpython-39\sherpa_ncnn -DBUILD_SHARED_LIBS=ON -DSHERPA_NCNN_ENABLE_PY
THON=ON -DSHERPA_NCNN_ENABLE_PORTAUDIO=OFF -B build\temp.win-amd64-cpython-39\Release -S C:\Users\JUN\AppData\Local\Temp\pip-install-985i10gf\sherpa-n
cnn_ba8b4b28c1e341d5b0c5c9024ca193fc
cmake --build build\temp.win-amd64-cpython-39\Release --target install --config Release -- -m
'cmake' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\JUN\AppData\Local\Temp\pip-install-985i10gf\sherpa-ncnn_ba8b4b28c1e341d5b0c5c9024ca193fc\setup.py", line 42, in <module>
setuptools.setup(
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "D:\Anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\command\build_ext.py", line 89, in run
_build_ext.run(self)
File "D:\Anaconda3\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run
self.build_extensions()
File "D:\Anaconda3\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\command\build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\command\build_ext.py", line 493, in _build_extensions_ser
ial
self.build_extension(ext)
File "C:\Users\JUN\AppData\Local\Temp\pip-install-985i10gf\sherpa-ncnn_ba8b4b28c1e341d5b0c5c9024ca193fc\cmake\cmake_extension.py", line 93, in b
uild_extension
raise Exception("Failed to configure sherpa")
Exception: Failed to configure sherpa
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for sherpa-ncnn
Running setup.py clean for sherpa-ncnn
Failed to build sherpa-ncnn
Installing collected packages: sherpa-ncnn
Running setup.py install for sherpa-ncnn ... error
error: subprocess-exited-with-error
× Running setup.py install for sherpa-ncnn did not run successfully.
│ exit code: 1
╰─> [80 lines of output]
running install
C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is depr
ecated.
!!
********************************************************************************
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
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\sherpa_ncnn
copying sherpa-ncnn\python\sherpa_ncnn\recognizer.py -> build\lib.win-amd64-cpython-39\sherpa_ncnn
copying sherpa-ncnn\python\sherpa_ncnn\__init__.py -> build\lib.win-amd64-cpython-39\sherpa_ncnn
running build_ext
Setting PYTHON_EXECUTABLE to D:\Anaconda3\python.exe
build command is:
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=D:\Anaconda3\python.exe -DCMAKE_INSTALL_PREFIX=C:\Users\JUN\AppData\Local\Temp\pip-i
nstall-985i10gf\sherpa-ncnn_ba8b4b28c1e341d5b0c5c9024ca193fc\build\lib.win-amd64-cpython-39\sherpa_ncnn -DBUILD_SHARED_LIBS=ON -DSHERPA_NCNN_ENABLE_PY
THON=ON -DSHERPA_NCNN_ENABLE_PORTAUDIO=OFF -B build\temp.win-amd64-cpython-39\Release -S C:\Users\JUN\AppData\Local\Temp\pip-install-985i10gf\sherpa-n
cnn_ba8b4b28c1e341d5b0c5c9024ca193fc
cmake --build build\temp.win-amd64-cpython-39\Release --target install --config Release -- -m
'cmake' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\JUN\AppData\Local\Temp\pip-install-985i10gf\sherpa-ncnn_ba8b4b28c1e341d5b0c5c9024ca193fc\setup.py", line 42, in <module>
setuptools.setup(
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\command\install.py", line 79, in run
return orig.install.run(self)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\command\install.py", line 697, in run
self.run_command('build')
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\command\build_ext.py", line 89, in run
_build_ext.run(self)
File "D:\Anaconda3\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run
self.build_extensions()
File "D:\Anaconda3\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\command\build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "C:\Users\JUN\AppData\Roaming\Python\Python39\site-packages\setuptools\_distutils\command\build_ext.py", line 493, in _build_extensions_ser
ial
self.build_extension(ext)
File "C:\Users\JUN\AppData\Local\Temp\pip-install-985i10gf\sherpa-ncnn_ba8b4b28c1e341d5b0c5c9024ca193fc\cmake\cmake_extension.py", line 93, in b
uild_extension
raise Exception("Failed to configure sherpa")
Exception: Failed to configure sherpa
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> sherpa-ncnn
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
from sherpa-ncnn.
和上面一样的错误
from sherpa-ncnn.
pip install cmake
这个命令的输出,请贴一下。
from sherpa-ncnn.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: cmake in c:\users\jun\appdata\roaming\python\python39\site-packages (3.28.3)
from sherpa-ncnn.
cmake --version
这个有输出吗
from sherpa-ncnn.
最快的解决方法
pip install sherpa-ncnn==2.1.6
正在发布 2.1.7
from sherpa-ncnn.
pip install sherpa-ncnn==2.1.6 这个可以安装上了
from sherpa-ncnn.
请问 这个命令cmake --version在哪里执行可以查看版本?
from sherpa-ncnn.
请问 这个命令cmake --version在哪里执行可以查看版本?
在命令行执行。你的错误,是因为你没有安装 cmake
from sherpa-ncnn.
那为何pip install cmake 的输出显示的是上面那个输出呀?我试了 pip list 里面也有cmake 显示3.28.3
from sherpa-ncnn.
cmake --version
这个有输出吗
你这个跑了吗
from sherpa-ncnn.
现在可以跑
pip install -U sherpa-ncnn
如果还不行,就用
pip install -U --no-cache-dir sherpa-ncnn
这个会安装最新的 sherpa-ncnn, 即 2.1.7
from sherpa-ncnn.
cmake --version
这个有输出吗你这个跑了吗
'cmake' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
显示这个
from sherpa-ncnn.
现在可以跑
pip install -U sherpa-ncnn
如果还不行,就用
pip install -U --no-cache-dir sherpa-ncnn
这个会安装最新的 sherpa-ncnn, 即 2.1.7
刚刚的pip install sherpa-ncnn==2.1.6 这个安装成功了
from sherpa-ncnn.
c:\users\jun\appdata\roaming\python\python39
如果你想解决的话,可以去上面的路径,找找有没有一个叫做 cmake.exe 的可执行程序。
如果不想花时间的话,你现在已经成功安装 sherpa-ncnn 了,可以使用了。
from sherpa-ncnn.
好的谢谢您
from sherpa-ncnn.
Related Issues (20)
- android系统骁龙设备上能跑,但是安装在天玑设备上就报错。 HOT 20
- android 设备 使用了编译好的so 和预训练模型,报错No implementation found for long com.k2fsa.sherpa.ncnn.SherpaNcnn HOT 1
- 你好,请问中文语音识别时,hotwords_file有标准格式吗? HOT 1
- Segmentation fault with emformer HOT 7
- x86 平台ncnn so编译不过去。 HOT 3
- ios IsFormatSampleRateAndChannelCountValid 错误 HOT 2
- 给Java初学者在windows下编译jni的过程
- 给Java初学者利用Eclipse快捷编译sherpa-onnx-java-api
- implement TTS using next-generation Kaldi with ncnn inference framework HOT 1
- does Sherpa-ncnn support silero-vad / vad function? HOT 1
- 在ios上识别声音有些时候对方说话识别不到,是否因为声音太小?有没有相关参数设置 HOT 3
- Using custom model, Android crash HOT 6
- 安卓端热词失效 HOT 2
- 该语音库安卓端似乎和其他ocr库冲突导致报错,是否有解决方案 HOT 3
- AudioIO: portAudio status - input overflow HOT 1
- 输入音频和视频文件转文字 HOT 5
- Android 加载 sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13 模型出现app 闪退 HOT 5
- 请问是否有 ncnn 的粤语,方言 model? HOT 1
- 关于GPU的疑问 HOT 4
- 请问当前工程支持Android 15版本的16k内存分页么? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sherpa-ncnn.