【问题标题】:Having issue in Installing label-studio via python 3.7通过 python 3.7 安装 label-studio 时遇到问题
【发布时间】:2021-10-06 11:03:31
【问题描述】:

我正在通过 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。

我们将非常感谢您在这方面的任何帮助。

谢谢。

【问题讨论】:

    标签: python pip localhost rpa


    【解决方案1】:

    您可以使用:

    py -m label-studio
    

    您的&lt;path/to/python/exe&gt;\Scripts 不在PATH 中。
    安装python的时候有没有勾选Add Python 3.7 to PATH选项?

    【讨论】:

    • 我已经添加了 python 的路径,因为 cmd 显示了 python 和 pip 的版本。
    • Python 3.7.8 ,Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe:没有名为 label-studio 的模块。现在显示此错误
    • 尝试将%APPDATA%\Python\Python37\Scripts 添加到PATH 作为临时解决方案(即set PATH=%PATH%%APPDATA%\Python\Python37\Scripts;)您可能已将软件包安装在用户目录中。
    • 我已经设置了安装包的路径。并尝试运行 label-studio 但同样的错误仍然存​​在。
    【解决方案2】:

    推荐的方式是使用venv:

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

    【讨论】:

      猜你喜欢
      • 2020-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-08
      • 1970-01-01
      • 1970-01-01
      • 2012-08-06
      • 1970-01-01
      相关资源
      最近更新 更多