Merge pull request #997 from Jackwaterveg/conda_install

[setup.sh] add conda install pipeline
pull/1005/head
Hui Zhang 3 years ago committed by GitHub
commit b8e7dff82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,6 +16,22 @@ cd DeepSpeech
pip install -e .
```
For user who only needs the basic function of paddlespeech, using conda to do installing is recommended.
You can go to [minicoda](https://docs.conda.io/en/latest/miniconda.html) to select a version and install it by yourself, or you can use the scripts below to install the last miniconda version.
```python
pushd tools
bash extras/install_miniconda.sh
popd
bash
```
After installing the conda, run the setup.sh to complete the installing process.
```python
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`.

@ -28,7 +28,7 @@ python-dateutil
pyworld
resampy==0.2.2
sacrebleu
scipy==1.2.1
scipy
sentencepiece
snakeviz
soundfile~=0.10
@ -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=8.4.0 gxx_linux-64=8.4.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

@ -13,6 +13,8 @@ else
fi
bash Miniconda3-latest-Linux-x86_64.sh -b
$HOME/miniconda3/bin/conda init
$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 librosa

Loading…
Cancel
Save