# 安裝DeepKE(LightNER) ###### tags: `教學` `DeekKE` `LightNER` :::info :point_right: **<font color="#B24B42">修改日期:** 2021/03/01 17:03</font> ::: > https://github.com/zjunlp/DeepKE > https://github.com/zjunlp/DeepKE/tree/main/example/ner/few-shot ## 安裝 ```bash # 全域設定 conda config --add channels conda-forge # 建立環境 conda create --name lightner python=3.8 "mamba>=0.22.1" # 啟動環境 conda activate lightner pip install protobuf==3.19.0 pip install ipdb git clone https://github.com/zjunlp/DeepKE.git cd DeepKE/example/ner/few-shot conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=11.0 -c pytorch mamba install tensorboardX==2.4 pip install transformers==3.4.0 mamba install hydra-core pip install deepke ``` ## 執行 ``` python run.py ```