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
19.33k stars 2.4k forks source link

ERROR: Cannot uninstall 'certifi'. 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. #301

Closed monajalal closed 4 years ago

monajalal commented 4 years ago

Describe the bug

  Attempting uninstall: certifi
    Found existing installation: certifi 2018.4.16
ERROR: Cannot uninstall 'certifi'. 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.
WARNING: You are using pip version 20.0.2; however, version 20.1.1 is available.
You should consider upgrading via the '/Users/mona/anaconda3/bin/python -m pip install --upgrade pip' command.

To Reproduce Steps to reproduce the behavior:

pip install label-studio

Environment (please complete the following information):

monajalal commented 4 years ago

I'm also getting other errors thought to share

(base) mona@goku:~/research/labstudio$ /Users/mona/anaconda3/bin/python -m pip install --upgrade pip
Collecting pip
  Downloading pip-20.1.1-py2.py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 2.1 MB/s 
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
Successfully installed pip-20.1.1
(base) mona@goku:~/research/labstudio$ pip install label-studio --ignore-installed
Collecting label-studio
  Using cached label_studio-0.6.1-py3-none-any.whl (6.8 MB)
Collecting attrs==19.1.0
  Using cached attrs-19.1.0-py2.py3-none-any.whl (35 kB)
Collecting xmljson==0.2.0
  Using cached xmljson-0.2.0-py2.py3-none-any.whl (14 kB)
Collecting chardet==3.0.4
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting MarkupSafe==1.1.1
  Using cached MarkupSafe-1.1.1-cp36-cp36m-macosx_10_6_intel.whl (18 kB)
Collecting tqdm==4.40.2
  Using cached tqdm-4.40.2-py2.py3-none-any.whl (55 kB)
Collecting pandas>=0.24.0
  Using cached pandas-1.0.3-cp36-cp36m-macosx_10_9_x86_64.whl (10.2 MB)
Collecting Jinja2==2.10.3
  Using cached Jinja2-2.10.3-py2.py3-none-any.whl (125 kB)
Collecting mixpanel==4.4.0
  Using cached mixpanel-4.4.0-py2.py3-none-any.whl (7.4 kB)
Collecting appdirs==1.4.3
  Using cached appdirs-1.4.3-py2.py3-none-any.whl (12 kB)
Collecting srsly==0.2.0
  Using cached srsly-0.2.0-cp36-cp36m-macosx_10_6_intel.whl (278 kB)
Processing /Users/mona/Library/Caches/pip/wheels/37/be/52/56b252d63f6ccbf764d153e9ce51ea5dc6a7aaf62bb81f9e14/rarfile-3.1-py3-none-any.whl
Collecting cymem==2.0.3
  Using cached cymem-2.0.3-cp36-cp36m-macosx_10_6_intel.whl (54 kB)
Collecting urllib3==1.25.7
  Using cached urllib3-1.25.7-py2.py3-none-any.whl (125 kB)
Collecting certifi==2019.11.28
  Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
Collecting Werkzeug==0.16.0
  Using cached Werkzeug-0.16.0-py2.py3-none-any.whl (327 kB)
Collecting itsdangerous==1.1.0
  Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting flask-api>=2.0
  Using cached Flask_API-2.0-py3-none-any.whl (119 kB)
Collecting jsonschema>=3.2.0
  Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting Flask==1.1.1
  Using cached Flask-1.1.1-py2.py3-none-any.whl (94 kB)
Collecting lxml>=4.2.5
  Using cached lxml-4.5.1-cp36-cp36m-macosx_10_9_x86_64.whl (4.5 MB)
Collecting orjson>=2.0.11
  Using cached orjson-3.0.1-cp36-cp36m-macosx_10_7_x86_64.whl (186 kB)
Collecting wasabi==0.4.2
  Using cached wasabi-0.4.2-py3-none-any.whl (20 kB)
Collecting Click==7.0
  Using cached Click-7.0-py2.py3-none-any.whl (81 kB)
Collecting requests==2.22.0
  Using cached requests-2.22.0-py2.py3-none-any.whl (57 kB)
Collecting pytz==2019.3
  Using cached pytz-2019.3-py2.py3-none-any.whl (509 kB)
Processing /Users/mona/Library/Caches/pip/wheels/79/9b/07/8f2c4dc42007b7a81c68c3347dbf08956ed9fe393a6ff38729/rq-1.0-py2.py3-none-any.whl
Collecting blis==0.4.1
  Using cached blis-0.4.1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.0 MB)
Collecting six==1.12.0
  Using cached six-1.12.0-py2.py3-none-any.whl (10 kB)
Collecting idna==2.8
  Using cached idna-2.8-py2.py3-none-any.whl (58 kB)
Collecting python-dateutil==2.8.1
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting label-studio-converter>=0.0.16
  Using cached label_studio_converter-0.0.16-py3-none-any.whl (7.0 kB)
Collecting numpy==1.17.4
  Using cached numpy-1.17.4-cp36-cp36m-macosx_10_9_x86_64.whl (15.1 MB)
Collecting importlib-metadata; python_version < "3.8"
  Using cached importlib_metadata-1.6.0-py2.py3-none-any.whl (30 kB)
Processing /Users/mona/Library/Caches/pip/wheels/d1/8a/1c/32ab9017418a2c64e4fbaf503c08648bed2f8eb311b869a464/pyrsistent-0.16.0-cp36-cp36m-macosx_10_9_x86_64.whl
Collecting setuptools
  Using cached setuptools-46.4.0-py3-none-any.whl (583 kB)
Collecting redis>=3.0.0
  Using cached redis-3.5.2-py2.py3-none-any.whl (71 kB)
Collecting Pillow==6.2.1
  Using cached Pillow-6.2.1-cp36-cp36m-macosx_10_6_intel.whl (3.9 MB)
Collecting zipp>=0.5
  Using cached zipp-3.1.0-py3-none-any.whl (4.9 kB)
ERROR: pylearn2 0.1.dev0 requires argparse, which is not installed.
ERROR: distributed 1.21.8 requires msgpack, which is not installed.
ERROR: tensorflow 1.11.0 has requirement setuptools<=39.1.0, but you'll have setuptools 46.4.0 which is incompatible.
ERROR: botocore 1.12.41 has requirement urllib3<1.25,>=1.20; python_version >= "3.4", but you'll have urllib3 1.25.7 which is incompatible.
Installing collected packages: attrs, xmljson, chardet, MarkupSafe, tqdm, numpy, pytz, six, python-dateutil, pandas, Jinja2, mixpanel, appdirs, srsly, rarfile, cymem, urllib3, certifi, Werkzeug, itsdangerous, Click, Flask, flask-api, zipp, importlib-metadata, pyrsistent, setuptools, jsonschema, lxml, orjson, wasabi, idna, requests, redis, rq, blis, Pillow, label-studio-converter, label-studio
Successfully installed Click-7.0 Flask-1.1.1 Jinja2-2.10.3 MarkupSafe-1.1.1 Pillow-6.2.1 Werkzeug-0.16.0 appdirs-1.4.3 attrs-19.1.0 blis-0.4.1 certifi-2019.11.28 chardet-3.0.4 cymem-2.0.3 flask-api-2.0 idna-2.8 importlib-metadata-1.6.0 itsdangerous-1.1.0 jsonschema-3.2.0 label-studio-0.6.1 label-studio-converter-0.0.16 lxml-4.5.1 mixpanel-4.4.0 numpy-1.17.4 orjson-3.0.1 pandas-1.0.3 pyrsistent-0.16.0 python-dateutil-2.8.1 pytz-2019.3 rarfile-3.1 redis-3.5.2 requests-2.22.0 rq-1.0 setuptools-46.4.0 six-1.12.0 srsly-0.2.0 tqdm-4.40.2 urllib3-1.25.7 wasabi-0.4.2 xmljson-0.2.0 zipp-3.1.0
yoginTVL commented 2 years ago

You may try to just reuse the existing installation : pip install label-studio --ignore-installed certifi

nyngwang commented 2 years ago

@yoginTVL This works.