通过 python 3.7 安装 label-studio 时遇到问题

问题描述

我正在通过 python 3.7 安装 label-studio。 我已使用此命令安装 label-studio

py -m pip install label-studio

我正在按照官方网站的说明进行操作。

# Requires >=python3.6,<3.9
pip install label-studio

# Start the server at http://localhost:8080
label-studio

但是当我以前启动这个程序时,它在 cmd 中出现以下错误

'label-studio' is not recognized as an internal or external command,operable program or batch file.

我使用的是 Windows 10。

在这方面的任何帮助将不胜感激。

谢谢。

解决方法

您可以使用:

py -m label-studio

您的 <path/to/python/exe>\Scripts 不在 PATH
安装python时是否勾选了Add Python 3.7 to PATH选项?

,

推荐的方式是使用venv:

python3 -m venv c:\path\to\myenv
c:\path\to\myenv\Scripts\activate.bat
pip install -U label-studio
label-studio