//建议Python3.10
//创建虚拟环境
python -m venv venv
//切换到虚拟环境
venv\Scripts\activate
//更新pip
python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
//安装requirements
python -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
//建议Python3.8
//创建虚拟环境
python -m venv venv
//切换到虚拟环境
source venv/bin/activate
//更新pip
python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
//安装requirements
python -m pip install -r requirements-linux.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
//进入到xclabel目录, 构建Docker镜像
docker build -t xclabel .
//在后台运行Docker容器,端口9924,将容器内的storage和log文件夹挂载到主机
docker run -d -p 9924:9924 -v ./storage:/xclabel/storage -v ./log:/xclabel/log xclabel