python - Couldn't install textract in google colab
问题描述
I couldn't install textract
in google colab, error message showing as below.
some people suggest to use sudo apt-get install libasound2-dev
but how to do sudo...
in google colab?
=== error message ==========================================================
Failed building wheel for pocketsphinx Running setup.py clean for pocketsphinx Failed to build pocketsphinx Installing collected packages: pocketsphinx Running setup.py install for pocketsphinx ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-03c_ysbm/pocketsphinx/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-6n9ewg9i/install-record.txt --single-version-externally-managed --compile: running install running build_ext building 'sphinxbase._sphinxbase' extension swigging deps/sphinxbase/swig/sphinxbase.i to deps/sphinxbase/swig/sphinxbase_wrap.c swig -python -modern -threads -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o deps/sphinxbase/swig/sphinxbase_wrap.c deps/sphinxbase/swig/sphinxbase.i unable to execute 'swig': No such file or directory error: command 'swig' failed with exit status 1
=========================================================================== Thank you, Ling
解决方案
In google colab Bash commands run by prefixing the command with ‘!’.
Example:
!apt update
!apt-get install libasound2-dev
推荐阅读
- opencart - Opencart 导出/导入工具
- flutter - 等待 Navigator.pop 忽略 Navigator.pushReplacement
- python - 无法在 Seaborn 箱线图中使用科学记数法
- excel - vba,基于列标题的总和
- sql-server - sql server 中的 RAND() 函数
- python - 如何使用 gspread 在 Google 表格单元格中插入任何超链接
- python - 从第一个应用程序路由收集信息并在不同的应用程序路由中提交该信息
- android - 定期作业计划程序无法在 Oppo 和 Realme Android 设备上运行
- excel - 斜率和趋势线选项提供两个不同的值
- ios - Flutter - CupertinoDatePicker initialDateTime 仅更新一次