WeTextProcessing
WeTextProcessing copied to clipboard
适配arm机器安装python包失败
机器cpu:
系统:
cat /proc/version
Linux version 4.19.90-vhulk2211.3.0.h1804.eulerosv2r10.aarch64 (abuild@szxrtosci10000) (gcc version 7.3.0 (GCC)) #1 SMP Mon Jun 3 18:15:36 UTC 2024
安装适配arm机器安装失败
error seems to come from openfst,
reliance: wetextprocessing-》pynini-》openfst
1 install openfst individually
2 install pynini individually Pip install Cython git clone https://github.com/kylebgorman/pynini.git cd pynini
同样的问题,请问你解决了吗?
My commands can handle pynini installation related issues:
- use a conda environment
conda install pynini -c conda-forgeto use a pynini conda package instead of compiling yourselfsed -i '' 's/pynini==[0-9\.]*/pynini/' requirements.txtto remove pynini pip version limit so you can pip install smoothly
Enjoy it.
I used macos, and I met the same problem. I've solved this problem now.
conda install openfst- Find directory
fstpath, for me is/opt/homebrew/Caskroom/miniforge/base/envs/tts/include/fst - Use
env CXXFLAGS="-I/opt/homebrew/Caskroom/miniforge/base/envs/tts/include" LDFLAGS="-L/opt/homebrew/Caskroom/miniforge/base/envs/tts/lib" pip install WeTextProcessingto install. - Waiting for install successful. Good luck to you.
My commands can handle pynini installation related issues:
- use a conda environment
conda install pynini -c conda-forgeto use a pynini conda package instead of compiling yourselfsed -i '' 's/pynini==[0-9\.]*/pynini/' requirements.txtto remove pynini pip version limit so you can pip install smoothlyEnjoy it.
conda install pynini -c conda-forge ,The following packages are not available from current channels.
I used macos, and I met the same problem. I've solved this problem now.
conda install openfst- Find directory
fstpath, for me is/opt/homebrew/Caskroom/miniforge/base/envs/tts/include/fst- Use
env CXXFLAGS="-I/opt/homebrew/Caskroom/miniforge/base/envs/tts/include" LDFLAGS="-L/opt/homebrew/Caskroom/miniforge/base/envs/tts/lib" pip install WeTextProcessingto install.- Waiting for install successful. Good luck to you.
this way, when Building wheel for pynini (pyproject.toml) ..., it will cost long time and can not complete!
如果你只是想做推理,可以在别的平台构图,我建议你先用这个(不依赖 pynini,依赖的 kaldifst 有提供 arm 适配):https://github.com/pengzhendong/wetext
如果你只是想做推理,可以在别的平台构图,我建议你先用这个(不依赖 pynini,依赖的 kaldifst 有提供 arm 适配):https://github.com/pengzhendong/wetext
谢谢
My commands can handle pynini installation related issues:
- use a conda environment
conda install pynini -c conda-forgeto use a pynini conda package instead of compiling yourselfsed -i '' 's/pynini==[0-9\.]*/pynini/' requirements.txtto remove pynini pip version limit so you can pip install smoothlyEnjoy it. 我这里报错: