1.安装anaconda(版本自己指定:Index of /)
wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh bash Anaconda3-2023.09-0-Linux-x86_64.sh source ~/anaconda3/bin/activate
2.安装Git
sudo apt install git git --version
3.安装DeepKE
Step 1:下载代码
git clone --depth 1 https://github.com/zjunlp/DeepKE.git
Step 2:使用anaconda创建虚拟环境,进入虚拟环境
conda create -n deepke python=3.8 conda activate deepke
1) 基于pip安装,直接使用 (不建议使用此方法,存在python包兼容冲突风险)
pip install deepke
2) 基于源码安装
pip install -r requirements.txt python setup.py install python setup.py develop