WeTextProcessing icon indicating copy to clipboard operation
WeTextProcessing copied to clipboard

适配arm机器安装python包失败

Open xiaoqiang-ok opened this issue 1 year ago • 3 comments

机器cpu: image 系统: 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机器安装失败 arm64架构环境适配问题

xiaoqiang-ok avatar Sep 04 '24 10:09 xiaoqiang-ok

error seems to come from openfst, reliance: wetextprocessing-》pynini-》openfst 1 install openfst individually image

2 install pynini individually Pip install Cython git clone https://github.com/kylebgorman/pynini.git cd pynini

image

pynini1

xiaoqiang-ok avatar Sep 05 '24 02:09 xiaoqiang-ok

同样的问题,请问你解决了吗?

LiuShixing avatar Sep 23 '24 07:09 LiuShixing

My commands can handle pynini installation related issues:

  1. use a conda environment
  2. conda install pynini -c conda-forge to use a pynini conda package instead of compiling yourself
  3. sed -i '' 's/pynini==[0-9\.]*/pynini/' requirements.txt to remove pynini pip version limit so you can pip install smoothly

Enjoy it.

FredWe avatar Sep 23 '24 08:09 FredWe

I used macos, and I met the same problem. I've solved this problem now.

  1. conda install openfst
  2. Find directory fst path, for me is /opt/homebrew/Caskroom/miniforge/base/envs/tts/include/fst
  3. Use env CXXFLAGS="-I/opt/homebrew/Caskroom/miniforge/base/envs/tts/include" LDFLAGS="-L/opt/homebrew/Caskroom/miniforge/base/envs/tts/lib" pip install WeTextProcessing to install.
  4. Waiting for install successful. Good luck to you.

Direct-A avatar Nov 20 '24 16:11 Direct-A

My commands can handle pynini installation related issues:

  1. use a conda environment
  2. conda install pynini -c conda-forge to use a pynini conda package instead of compiling yourself
  3. sed -i '' 's/pynini==[0-9\.]*/pynini/' requirements.txt to remove pynini pip version limit so you can pip install smoothly

Enjoy it.

conda install pynini -c conda-forge ,The following packages are not available from current channels.

chenmj201601 avatar Nov 29 '24 08:11 chenmj201601

I used macos, and I met the same problem. I've solved this problem now.

  1. conda install openfst
  2. Find directory fst path, for me is /opt/homebrew/Caskroom/miniforge/base/envs/tts/include/fst
  3. Use env CXXFLAGS="-I/opt/homebrew/Caskroom/miniforge/base/envs/tts/include" LDFLAGS="-L/opt/homebrew/Caskroom/miniforge/base/envs/tts/lib" pip install WeTextProcessing to install.
  4. 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!

image

chenmj201601 avatar Nov 29 '24 09:11 chenmj201601

如果你只是想做推理,可以在别的平台构图,我建议你先用这个(不依赖 pynini,依赖的 kaldifst 有提供 arm 适配):https://github.com/pengzhendong/wetext

pengzhendong avatar Nov 29 '24 09:11 pengzhendong

如果你只是想做推理,可以在别的平台构图,我建议你先用这个(不依赖 pynini,依赖的 kaldifst 有提供 arm 适配):https://github.com/pengzhendong/wetext

谢谢

chenmj201601 avatar Nov 29 '24 10:11 chenmj201601

My commands can handle pynini installation related issues:

  1. use a conda environment
  2. conda install pynini -c conda-forge to use a pynini conda package instead of compiling yourself
  3. sed -i '' 's/pynini==[0-9\.]*/pynini/' requirements.txt to remove pynini pip version limit so you can pip install smoothly

Enjoy it. 我这里报错: Image

xiaoqiang-ok avatar Mar 19 '25 01:03 xiaoqiang-ok