1.在conda中建立一个虚拟环境
如图,打开anaconda prompt会出现原始的环境
输入命令,这三行直接复制粘贴,然后回车,暂停的话也回车,然后就会开始安装。
conda create --name label-studio
conda activate label-studio
pip install label-studio
此时我出现了一个问题
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
百度之后输入命令行
pip install --upgrade nni --ignore-installed
解决,链接如下
安装完以后 在文件中找到label-studio所在位置 我的位置在这
输入cmd 然后输入
label-studio start
这时候出现了一个问题
ModuleNotFoundError: No module named 'ruamel'
根据百度 我找到出现这个问题的py程序 把里面的
from ruamel import yaml
改成了 import ruamel_yaml as yaml 如图:
这个问题解决 再启动就跳转到label-studio的页面了