这可能会被标记为重复的问题,但我没有什么好运气,所以我们继续吧。
我正在尝试用Python2.7开发类似于“Jarvis”的设置。我打算使用Pocketsphinx作为其中的一部分。我试着在我的Windows 10机器上做这个,但是Pocketsphinx需要Swig,而那台Windows 10机器彻底失败了(我还在解决这个问题)。因此,我转到了我的Raspberry Pi Zero,因为那就是我将要实现实际程序的地方。
我成功安装了Swig。没有Windows 10遇到的任何问题。然后我试图安装Pocketsphinx,结果就炸了。只有很少的一点安装失败了。我读到我需要下载Python Developer 2.7. 搞定之后,事情似乎进展顺利。我看到屏幕上滚动了一大堆东西,并且看起来它可能会正常工作。不行。这时候我得到了这个错误:
deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30: fatal error: pulse/pulseaudio.h: No such file or directory
include compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
清理...命令/usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-Wt0cIJ/pocketsphinx/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-UOA_Nf-record/install-record.txt --single-version-externally-managed --compile 失败,出错代码为1,在/tmp/pip-build-Wt0cIJ/pocketsphinx中。最新的调用(最近最先):File "/usr/bin/pip", line 9, in load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File "/usr/lib/python2.7/dist-packages/pip/init.py", line 248, in main return command.main(cmd_args) File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 51: ordinal not in range(128)
今天我看错误看得有点腻了。有人能帮我吗?我承认我还在编程世界的起步阶段,但这让我的大脑开始发热了。
我正在尝试用Python2.7开发类似于“Jarvis”的设置。我打算使用Pocketsphinx作为其中的一部分。我试着在我的Windows 10机器上做这个,但是Pocketsphinx需要Swig,而那台Windows 10机器彻底失败了(我还在解决这个问题)。因此,我转到了我的Raspberry Pi Zero,因为那就是我将要实现实际程序的地方。
我成功安装了Swig。没有Windows 10遇到的任何问题。然后我试图安装Pocketsphinx,结果就炸了。只有很少的一点安装失败了。我读到我需要下载Python Developer 2.7. 搞定之后,事情似乎进展顺利。我看到屏幕上滚动了一大堆东西,并且看起来它可能会正常工作。不行。这时候我得到了这个错误:
deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30: fatal error: pulse/pulseaudio.h: No such file or directory
include compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
清理...命令/usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-Wt0cIJ/pocketsphinx/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-UOA_Nf-record/install-record.txt --single-version-externally-managed --compile 失败,出错代码为1,在/tmp/pip-build-Wt0cIJ/pocketsphinx中。最新的调用(最近最先):File "/usr/bin/pip", line 9, in load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File "/usr/lib/python2.7/dist-packages/pip/init.py", line 248, in main return command.main(cmd_args) File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 51: ordinal not in range(128)
今天我看错误看得有点腻了。有人能帮我吗?我承认我还在编程世界的起步阶段,但这让我的大脑开始发热了。