HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
18.91k stars 2.36k forks source link

Install on Ubuntu: label-studio: command not found #2396

Open Yiiii19 opened 2 years ago

Yiiii19 commented 2 years ago

Hi, OS: Ubuntu 20.04.4 LTS Python: 3.8

I want to install with conda, so thats what i did conda create --name label-studio python=3.8 conda activate label-studio pip install label-studio

Here is part of the installation Requirement already satisfied: ruamel.yaml.clib>=0.2.6 in ./.local/lib/python3.8/site-packages (from ruamel.yaml>=0.15.34->drf-yasg==1.20.0->label-studio) (0.2.6) Requirement already satisfied: MarkupSafe>=2.0 in ./.local/lib/python3.8/site-packages (from jinja2->coreschema>=0.0.4->drf-yasg==1.20.0->label-studio) (2.1.1) Requirement already satisfied: ua-parser>=0.10.0 in ./.local/lib/python3.8/site-packages (from user-agents->django-user-agents==0.4.0->label-studio) (0.10.0) Installing collected packages: urllib3, six, idna, charset-normalizer, requests, pytz, pycparser, oauthlib, click, cffi, simplejson, pyRFC3339, pandas, cryptography, pyyaml, lockfile Attempting uninstall: pandas Found existing installation: pandas 1.4.2 Uninstalling pandas-1.4.2: Successfully uninstalled pandas-1.4.2 Successfully installed cffi-1.15.0 charset-normalizer-2.0.12 click-8.1.3 cryptography-37.0.2 idna-3.3 lockfile-0.12.2 oauthlib-3.2.0 pandas-1.3.5 pyRFC3339-1.1 pycparser-2.21 pytz-2019.3 pyyaml-6.0 requests-2.27.1 simplejson-3.17.6 six-1.16.0 urllib3-1.26.9

Then I want to start the server: (label-studio) yiming@yiming-Lenovo-Legion-Y740-15IRHg:~$ label-studio label-studio: command not found

Thanks for your help.

dvwright commented 2 years ago

It looks like it's not in your PATH. What does which python display? perhaps you need to do something such as:

export PATH=$PATH:`which python`
syedjafer commented 2 years ago

Hi @Yiiii19 Can u check whether your python version/packages is activated

Sample Screenshot image

Also check whether the 'label-studio' is present in the /bin folder,

image

Hope this helps you.

danghieuan commented 2 years ago

I am facing the same problem as yours, When i used the command: conda create --name label-studio, it created me an environment with the newest python version at the moment (3.10). But, when I uninstalled python 3.10 environment and proceeded to install a lower version of python 3.9, the problem was solved.