我一直在试图在我的笔记本电脑上安装pocketsphinx。 我已经安装了所有的依赖关系,仍然继续给出下面的错误。 GCC.exe在一个文件夹中退出并被添加到环境variables中。 感谢所有的帮助
Source in c:usersarchanaappdatalocaltemppip_build_archanapocketsphinx has version 0.0.4,which satisfies requirement pocketsphinx Installing collected packages: pocketsphinx Running setup.py install for pocketsphinx Running command C:UsersARCHANAAnacondapython.exe -c "import setuptools,tokenize;__file__='c:\users\archana\appdata\local\temp\pip_build_ARCHANA\pocketsphinx\setup.py';exec(compile(getattr(tokenize,'open',open)(__file__).read().replace('rn','n'),__file__,'exec'))" install --record c:usersarchanaappdatalocaltemppip-f_ai9e-recordinstall-record.txt --single-version-externally-managed --compile running install running build running build_py creating build creating buildlib.win-amd64-2.7 creating buildlib.win-amd64-2.7sphinxbase copying sphinxbaseswigpythonsphinxbase.py -> buildlib.win-amd64-2.7sphinxbase copying sphinxbaseswigpython__init__.py -> buildlib.win-amd64-2.7sphinxbase creating buildlib.win-amd64-2.7pocketsphinx copying pocketsphinxswigpythonpocketsphinx.py -> buildlib.win-amd64-2.7pocketsphinx copying pocketsphinxswigpython__init__.py -> buildlib.win-amd64-2.7pocketsphinx running build_ext building 'sphinxbase._sphinxbase' extension swigging sphinxbase/swig/sphinxbase.i to sphinxbase/swig/sphinxbase_wrap.c C:UsersARCHANAAnacondaswigwin-3.0.5swig.exe -python -modern -Isphinxbase/include -Isphinxbase/include/sphinxbase -Isphinxbase/include/win32 -outdir sphinxbase/swig/python -o sphinxbase/swig/sphinxbase_wrap.c sphinxbase/swig/sphinxbase.i creating buildtemp.win-amd64-2.7 creating buildtemp.win-amd64-2.7Release creating buildtemp.win-amd64-2.7Releasesphinxbase creating buildtemp.win-amd64-2.7Releasesphinxbasesrc creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbase creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbaselm creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbasefeat creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbaseutil creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbasefe creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxad creating buildtemp.win-amd64-2.7Releasesphinxbaseswig C:UsersARCHANAAnacondaScriptsgcc.bat -DMS_WIN64 -mdll -O -Wall -DSphinxBASE_EXPORTS -DPOCKETSphinx_EXPORTS -DHAVE_CONfig_H -D_CRT_SECURE_NO_DEPRECATE -D_USRDLL -DSphinxDLL -DWIN32 -D_WINDOWS -DYY_NO_UNISTD_H -Isphinxbase/include -Isphinxbase/include/sphinxbase -Isphinxbase/include/win32 -IC:UsersARCHANAAnacondainclude -IC:UsersARCHANAAnacondaPC -c sphinxbase/src/libsphinxbase/lmfsg_model.c -o buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbaselmfsg_model.o /wd4244 /wd4090 /wd4018 gcc.exe: error: /wd4244: No such file or directory gcc.exe: error: /wd4090: No such file or directory gcc.exe: error: /wd4018: No such file or directory error: command 'gcc' Failed with exit status 1 Complete output from command C:UsersARCHANAAnacondapython.exe -c "import setuptools,'exec'))" install --record c:usersarchanaappdatalocaltemppip-f_ai9e-recordinstall-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating buildlib.win-amd64-2.7 creating buildlib.win-amd64-2.7sphinxbase copying sphinxbaseswigpythonsphinxbase.py -> buildlib.win-amd64-2.7sphinxbase copying sphinxbaseswigpython__init__.py -> buildlib.win-amd64-2.7sphinxbase creating buildlib.win-amd64-2.7pocketsphinx copying pocketsphinxswigpythonpocketsphinx.py -> buildlib.win-amd64-2.7pocketsphinx copying pocketsphinxswigpython__init__.py -> buildlib.win-amd64-2.7pocketsphinx running build_ext building 'sphinxbase._sphinxbase' extension swigging sphinxbase/swig/sphinxbase.i to sphinxbase/swig/sphinxbase_wrap.c C:UsersARCHANAAnacondaswigwin-3.0.5swig.exe -python -modern -Isphinxbase/include -Isphinxbase/include/sphinxbase -Isphinxbase/include/win32 -outdir sphinxbase/swig/python -o sphinxbase/swig/sphinxbase_wrap.c sphinxbase/swig/sphinxbase.i creating buildtemp.win-amd64-2.7 creating buildtemp.win-amd64-2.7Release creating buildtemp.win-amd64-2.7Releasesphinxbase creating buildtemp.win-amd64-2.7Releasesphinxbasesrc creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbase creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbaselm creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbasefeat creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbaseutil creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbasefe creating buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxad creating buildtemp.win-amd64-2.7Releasesphinxbaseswig C:UsersARCHANAAnacondaScriptsgcc.bat -DMS_WIN64 -mdll -O -Wall -DSphinxBASE_EXPORTS -DPOCKETSphinx_EXPORTS -DHAVE_CONfig_H -D_CRT_SECURE_NO_DEPRECATE -D_USRDLL -DSphinxDLL -DWIN32 -D_WINDOWS -DYY_NO_UNISTD_H -Isphinxbase/include -Isphinxbase/include/sphinxbase -Isphinxbase/include/win32 -IC:UsersARCHANAAnacondainclude -IC:UsersARCHANAAnacondaPC -c sphinxbase/src/libsphinxbase/lmfsg_model.c -o buildtemp.win-amd64-2.7Releasesphinxbasesrclibsphinxbaselmfsg_model.o /wd4244 /wd4090 /wd4018 gcc.exe: error: /wd4244: No such file or directory gcc.exe: error: /wd4090: No such file or directory gcc.exe: error: /wd4018: No such file or directory error: command 'gcc' Failed with exit status 1 ---------------------------------------- Cleaning up... Removing temporary dir c:usersarchanaappdatalocaltemppip_build_ARCHANA... Command C:UsersARCHANAAnacondapython.exe -c "import setuptools,'exec'))" install --record c:usersarchanaappdatalocaltemppip-f_ai9e-recordinstall-record.txt --single-version-externally-managed --compile Failed with error code 1 in c:usersarchanaappdatalocaltemppip_build_ARCHANApocketsphinx Exception @R_698_4045@ion: Traceback (most recent call last): File "C:UsersARCHANAAnacondalibsite-packagespipbasecommand.py",line 122,in main status = self.run(options,args) File "C:UsersARCHANAAnacondalibsite-packagespipcommandsinstall.py",line 279,in run requirement_set.install(install_options,global_options,root=options.root_path) File "C:UsersARCHANAAnacondalibsite-packagespipreq.py",line 1380,in install requirement.install(install_options,*args,**kwargs) File "C:UsersARCHANAAnacondalibsite-packagespipreq.py",line 699,in install cwd=self.source_dir,filter_stdout=self._filter_install,show_stdout=False) File "C:UsersARCHANAAnacondalibsite-packagespiputil.py",line 697,in call_subprocess % (command_desc,proc.returncode,cwd)) InstallationError: Command C:UsersARCHANAAnacondapython.exe -c "import setuptools,'exec'))" install --record c:usersarchanaappdatalocaltemppip-f_ai9e-recordinstall-record.txt --single-version-externally-managed --compile Failed with error code 1 in c:usersarchanaappdatalocaltemppip_build_ARCHANApocketsphinx
程序运行时出现C ++ STATUS_ACCESS_VIOLATION错误
屏幕抓取一个窗口
阅读特定的Windows事件日志事件
语音识别API是否在Windows Store应用程序中可用?
如何改变文字和背景颜色?
看来你正在使用MinGW构建的Anaconda python。 自述文件中提到的默认pocketsphinx-python应该可以使用MSVC python(从python.org发布),所以它与GCC python不兼容,因为它在setup.py中使用了一些特定于MSVC的选项:
extra_compile_args.extend([ '/wd4244','/wd4267','/wd4197','/wd4090','/wd4018' ])
你有两个选择:
使用MSVC编译的Windows默认的python
从setup.py中移除extra_compile_args ,然后程序包可能会用MinGW gcc编译。
克里斯托夫·戈尔克(Christoph Gohlke)向他的非官方扩展库中添加了pocketsphinx的编译版本。
如果您正在运行Python 3.5(32位),请下载:“pocketsphinx-0.0.9-cp35-cp35m-win32.whl”
在这里: http : //www.lfd.uci.edu/~gohlke/pythonlibs/#pocketsphinx
然后运行:pip3 install“pocketsphinx-0.0.9-cp35-cp35m-win32.whl”
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。