提交 e84690f6 编写于 作者: H huangyuxin

add conda install pipline

上级 39400e5e
...@@ -16,6 +16,16 @@ cd DeepSpeech ...@@ -16,6 +16,16 @@ cd DeepSpeech
pip install -e . pip install -e .
``` ```
For user who only needs the basic function of paddlespeech, using conda to do installing is recommended.
```python
pushd tools
bash extras/install_miniconda.sh
popd
source ~/.bashrc
bash setup.sh
```
## Setup (Other Platform) ## Setup (Other Platform)
- Make sure these libraries or tools in [dependencies](./dependencies.md) installed. More information please see: `setup.py `and ` tools/Makefile`. - Make sure these libraries or tools in [dependencies](./dependencies.md) installed. More information please see: `setup.py `and ` tools/Makefile`.
......
...@@ -44,3 +44,9 @@ visualdl==2.2.0 ...@@ -44,3 +44,9 @@ visualdl==2.2.0
webrtcvad webrtcvad
yacs yacs
yq yq
pypi-kenlm
GPUtil
psutil
pynvml
distro
# Install conda dependencies
conda install -c conda-forge sox libsndfile swig bzip2 bottleneck gcc_linux-64=7.5.0 gxx_linux-64=7.5.0 --yes
# Install the python lib
pip install -r requirements.txt
# Install the auto_log
pushd tools/extras
bash install_autolog.sh
popd
# Install the ctcdecoder
pushd paddlespeech/s2t/decoders/ctcdecoder/swig
bash -e setup.sh
popd
# Install the python_speech_features
pushd third_party
bash -e install.sh
popd
...@@ -9,9 +9,9 @@ WGET=${WGET:-wget} ...@@ -9,9 +9,9 @@ WGET=${WGET:-wget}
if [ -d "$DOWNLOAD_DIR" ]; then if [ -d "$DOWNLOAD_DIR" ]; then
cp -p "$DOWNLOAD_DIR/Miniconda3-latest-Linux-x86_64.sh" . || exit 1 cp -p "$DOWNLOAD_DIR/Miniconda3-latest-Linux-x86_64.sh" . || exit 1
else else
$WGET https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh || exit 1 $WGET https://repo.anaconda.com/miniconda/Miniconda3-py37_4.10.3-Linux-x86_64.sh || exit 1
fi fi
bash Miniconda3-latest-Linux-x86_64.sh -b bash Miniconda3-py37_4.10.3-Linux-x86_64.sh -b
$HOME/miniconda3/bin/python -m pip install --user tqdm $HOME/miniconda3/bin/python -m pip install --user tqdm
$HOME/miniconda3/bin/python -m pip install --user scikit-learn $HOME/miniconda3/bin/python -m pip install --user scikit-learn
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册