精彩内容马上呈现...
BI1SZB

windows安装labelme时遇到的问题及解决方案

目录

1.Microsoft Visual C++ 14.0 or greater is required.

2.torchvision 0.14.1+cu116 requires torch==1.13.1, which is not installed.

3.ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0i 14 Aug 2018'.


1.Microsoft Visual C++ 14.0 or greater is required.

错误的全部代码为

Building wheel for PyQt5-sip (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for PyQt5-sip (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'PyQt5.sip' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyQt5-sip
Failed to build PyQt5-sip
ERROR: Could not build wheels for PyQt5-sip, which is required to install pyproject.toml-based projects

labelme-install-troubleshooting-figure-01.png

解决方案:Microsoft Visual C++ 14.0 is required 的终极解决办法_c++14.0-CSDN博客

2.torchvision 0.14.1+cu116 requires torch==1.13.1, which is not installed.

错误的全部代码为

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchvision 0.14.1+cu116 requires torch==1.13.1, which is not installed.

解决方案:ERROR: pip‘s dependency resolver does not currently take into account all the packages that are inst_error: pip's dependency resolver does not currentl-CSDN博客

按照自己报错提示的信息进行安装,不要照搬文章里的命令

labelme-install-troubleshooting-install-02.png

3.ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0i 14 Aug 2018'.

错误的全部代码为

ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0i  14 Aug 2018'.
See: https://github.com/urllib3/urllib3/issues/2168

解决方案:报错:ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the ‘ssl‘ module is compiled wi_请叫漂亮的博客-CSDN博客

成功之后的页面:

labelme-install-troubleshooting-figure-03.png

分享到