【二营长爬坑】安装paddleSpeech所遇到的坑 #1973
SuperKsa
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
python各种拉库 各种交叉,每次安装环境都会给你带来惊喜,这里就介绍下遇到的一些问题:
我的环境是python3.9,有新的坑我会加上来
2022-5-26最新,PaddlePaddle可能装不上,要先指定下
protobuf
版本pip install protobuf==3.20.1
在安装之前
建议先装几个必须库,防止包比较大,网络不好容易炸:
numba numpy phkit pyaudio aukit Flask jieba pypinyin scipy pydub matplotlib librosa
【关于pyaudio】ubuntu/树莓派初装系统后先别慌着
apt update
先要
apt install portaudio19-dev
然后再pip install pyaudio
不然你有可能装不上!!!
直接PIP安装(简单模式)
这种方式一般没什么问题,中途遇到报错就多安装几次,多半是因为网络问题,实在装不上 就尝试恢复pip源为官方的
如
seqeval
死活装不上,换pip官方源吧,百度、阿里、清华都试过了不行关于 CONDA
我已经在ubuntu和树莓派同时遇到装不上的情况,提示非法字符。重新在官方这个页面选一个符合自己系统低一点的版本安装。
https://repo.anaconda.com/miniconda/
关于树莓派(pip源必须用官方,不能用第三方加速)
1、下面这堆都装上吧
apt-get install libasound2-plugins libsox-fmt-all libsox-dev sox libssl-dev protobuf-compiler libprotobuf-dev portaudio19-dev build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev curl libbz2-dev libsqlite3-dev liblzma-dev
2、编译python的时候 要加sql和ssl参数
3、自己编译cmake(慢慢等,大概1小时)
强行屏蔽log,找到包:
文件1:
paddlespeech/cli/log.py
self.logger.setLevel(logging.DEBUG)
修改为
self.logger.setLevel(logging.ERROR)
文件2:
paddlespeech/s2t/utils/log.py
(这里就是exp/log目录生成的处理逻辑)_call_from_cli = False
修改为
_call_from_cli = True
Beta Was this translation helpful? Give feedback.
All reactions