【Bug】安装labelme报错记录

 Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/ubuntu/anaconda3/envs/ztf/bin/python /home/ubuntu/anaconda3/envs/ztf/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-mmjwrzcz/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -- 'setuptools>=40.8.0' wheel
       cwd: None
  Complete output (14 lines):
  Traceback (most recent call last):
    File "/home/ubuntu/anaconda3/envs/ztf/lib/python3.6/runpy.py", line 193, in _run_module_as_main
      "__main__", mod_spec)
    File "/home/ubuntu/anaconda3/envs/ztf/lib/python3.6/runpy.py", line 85, in _run_code
      exec(code, run_globals)
    File "/home/ubuntu/anaconda3/envs/ztf/lib/python3.6/site-packages/pip/__main__.py", line 23, in 
      from pip._internal.cli.main import main as _main  # isort:skip # noqa
    File "/home/ubuntu/anaconda3/envs/ztf/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 5, in 
      import locale
    File "/home/ubuntu/anaconda3/envs/ztf/lib/python3.6/locale.py", line 16, in 
      import re
    File "/home/ubuntu/anaconda3/envs/ztf/lib/python3.6/re.py", line 142, in 
      class RegexFlag(enum.IntFlag):
  AttributeError: module 'enum' has no attribute 'IntFlag'

【Bug】安装labelme报错记录_第1张图片
在Ubuntu下安装labelme报错

pip install labelme

降低setuptools版本也没有得到解决,最后升级了pip才得到解决

python -m pip install --upgrade pip

参考

https://zhuanlan.zhihu.com/p/127062086

你可能感兴趣的:(Bug修复&解决方案)