安裝百度語音識別sdk
The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
Traceback (most recent call last):
File "setup.py", line 28, in <module>
keywords = ['baidu', 'aip', 'ocr', 'antiporn', 'nlp', 'face', 'kg', 'speech'],
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 411, in run
self.easy_install(spec, not self.no_deps)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 653, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item
self.process_distribution(spec, dist, deps)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 745, in process_distribution
[requirement], self.local_index, self.easy_install
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1092, in best_match
return self.obtain(req, installer)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1104, in obtain
return installer(requirement)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 672, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 698, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1104, in run_setup
run_setup(setup_script, args)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 257, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 170, in save_modules
saved_exc.resume()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 145, in resume
six.reraise(type, exc, self._tb)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 158, in save_modules
yield saved
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 254, in run_setup
_execfile(setup_script, ns)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 49, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-WbvAjF/Pillow-4.3.0/setup.py", line 799, in <module>
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
Traceback (most recent call last):
File "setup.py", line 28, in <module>
keywords = ['baidu', 'aip', 'ocr', 'antiporn', 'nlp', 'face', 'kg', 'speech'],
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 411, in run
self.easy_install(spec, not self.no_deps)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 653, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item
self.process_distribution(spec, dist, deps)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 745, in process_distribution
[requirement], self.local_index, self.easy_install
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1092, in best_match
return self.obtain(req, installer)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1104, in obtain
return installer(requirement)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 672, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 698, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1104, in run_setup
run_setup(setup_script, args)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 257, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 170, in save_modules
saved_exc.resume()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 145, in resume
six.reraise(type, exc, self._tb)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 158, in save_modules
yield saved
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 254, in run_setup
_execfile(setup_script, ns)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 49, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-WbvAjF/Pillow-4.3.0/setup.py", line 799, in <module>
setuptools.sandbox.UnpickleableException: RequiredDependencyException('\n\nThe headers or library files could not be found for jpeg,\na required dependency when compiling Pillow from source.\n\nPlease see the install instructions at:\n https://pillow.readthedocs.io/en/latest/installation.html\n\n',)
以上問題是在python2.7下面出現的。
SDK的下載網址:
http://yuyin.baidu.com/sdk/down?appId=10335958
具體下載位置是(下載圖中的python sdk即可):
解決方案:
安裝Pillow和requests
相關文章
- 百度API---語音識別API
- 百度語音識別cordova外掛
- PocketSphinx語音識別系統的安裝和使用
- python使用百度語音識別API注意事項PythonAPI
- 用python呼叫百度語音識別api批量處理本地語音檔案PythonAPI
- KALDI語音識別庫在LINUX下的安裝和編譯Linux編譯
- JavaScript的語音識別JavaScript
- 語音識別技術
- Python 百度語音識別與合成REST API及ffmpeg使用PythonRESTAPI
- C# 10分鐘完成百度語音技術(語音識別與合成)——入門篇C#
- 樹莓派語音互動--語音輸入識別樹莓派
- 【Recorder.js+百度語音識別】全棧方案技術細節JS全棧
- 微信小程式:nodejs+百度語音識別開發實踐微信小程式NodeJS
- 語音引擎安裝助手 - 助您完成高品質真人語音的安裝
- 人工智慧 (08) 語音識別人工智慧
- Swift-語音識別、翻譯Swift
- 語音識別----音高的處理
- 語音識別開源專案
- 語音識別方向的資料
- ASR-使用whisper語音識別
- 百度開放人臉識別離線SDK 一個SDK打包三大能力
- laravel通過classmap整合第三方包百度語音識別LaravelSSM
- 【JAVA】使用百度語音識別 Rest API,遇到識別結果顯示亂碼的問題和解決JavaRESTAPI
- 人工智慧之語音識別(ASR)人工智慧
- [譯] 使用 WFST 進行語音識別
- Python語音識別終極指南Python
- Windows XP語音識別技術(轉)Windows
- Android整合百度人臉識別SDK詳細流程Android
- 怎麼關閉win10語音識別 win10如何關閉電腦的語音識別Win10
- 語音識別進入IVR系統 (轉)VR
- Linux的語音識別軟體(轉)Linux
- Ubuntu SDK 安裝Ubuntu
- andriod sdk 安裝
- Win10系統如何啟動語音識別 win10啟動語音識別的兩種方法Win10
- 認識J2SDK1.5安裝目錄薦
- 語音識別技術竟然發展如此迅速
- 30分鐘實現小程式語音識別
- 科大訊飛,不只是智慧語音識別