提交 2f92a5d9 编写于 作者: H huangyuxin

add conda init, use gcc 8.4.0

上级 e84690f6
...@@ -17,11 +17,17 @@ pip install -e . ...@@ -17,11 +17,17 @@ pip install -e .
``` ```
For user who only needs the basic function of paddlespeech, using conda to do installing is recommended. 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 ```python
pushd tools pushd tools
bash extras/install_miniconda.sh bash extras/install_miniconda.sh
popd popd
source ~/.bashrc bash
```
After installing the conda, run the setup.sh to complete the installing process.
```python
bash setup.sh bash setup.sh
``` ```
......
...@@ -28,7 +28,7 @@ python-dateutil ...@@ -28,7 +28,7 @@ python-dateutil
pyworld pyworld
resampy==0.2.2 resampy==0.2.2
sacrebleu sacrebleu
scipy==1.2.1 scipy
sentencepiece sentencepiece
snakeviz snakeviz
soundfile~=0.10 soundfile~=0.10
......
# Install conda dependencies # 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 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 # Install the python lib
pip install -r requirements.txt pip install -r requirements.txt
......
...@@ -9,9 +9,11 @@ WGET=${WGET:-wget} ...@@ -9,9 +9,11 @@ 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.anaconda.com/miniconda/Miniconda3-py37_4.10.3-Linux-x86_64.sh || exit 1 $WGET https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh || exit 1
fi fi
bash Miniconda3-py37_4.10.3-Linux-x86_64.sh -b 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 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.
先完成此消息的编辑!
想要评论请 注册