Skip to content

linux环境安装

zhifu gao edited this page Dec 12, 2023 · 9 revisions

conda环境安装

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh 
sh Miniconda3-latest-Linux-x86_64.sh 
source ~/.bashrc
conda create -n funasr python=3.7 #推荐python3.7
conda activate funasr

更多conda安装细节参考https://docs.conda.io/en/latest/miniconda.html

pytorch安装(version >= 1.7.0)

pip3 install torch torchvision torchaudio

更多cuda版本对应的pytorch安装命令,请参考 https://pytorch.org/get-started/locally

modelscope安装

pip install -U modelscope

funasr代码下载、安装

pip安装

pip install -U funasr

源码安装

git clone https://github.com/alibaba-damo-academy/FunASR.git && cd FunASR
pip install -e ./
Clone this wiki locally