add conda install pipline

pull/997/head
huangyuxin 3 years ago
parent 39400e5ee8
commit e84690f6f0

@ -16,6 +16,16 @@ cd DeepSpeech
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)
- 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
webrtcvad
yacs
yq
pypi-kenlm
GPUtil
psutil
pynvml
distro

@ -0,0 +1,20 @@
# 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}
if [ -d "$DOWNLOAD_DIR" ]; then
cp -p "$DOWNLOAD_DIR/Miniconda3-latest-Linux-x86_64.sh" . || exit 1
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
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 scikit-learn

Loading…
Cancel
Save