• error: subprocess-exited-with-error完美解决webitor安装不了问题


    安装 webitor 报错:

    • error: subprocess-exited-with-error
    • error: metadata-generation-failed
    PS E:\joinkwang\Documents\appium_Ui> pip install weditor                         
    Collecting weditor
      Using cached weditor-0.6.7.tar.gz (2.2 MB)
      Preparing metadata (setup.py) ... error
      error: subprocess-exited-with-error
    
      × python setup.py egg_info did not run successfully.
      │ exit code: 1
      ╰─> [23 lines of output]
          WARNING: The wheel package is not available.
          ERROR:root:Error parsing
          Traceback (most recent call last):
            File "c:\users\make\appdata\local\temp\pip-install-l52aei08\weditor_8b6041442bdf48fdbe262087342a14fc\.eggs\pbr-5.11.0-py3.10.egg\pbr\core.py", line 111, in pbr
              attrs = util.cfg_to_args(path, dist.script_args)
            File "c:\users\make\appdata\local\temp\pip-install-l52aei08\weditor_8b6041442bdf48fdbe262087342a14fc\.eggs\pbr-5.11.0-py3.10.egg\pbr\util.py", line 272, in cfg_to_args
              pbr.hooks.setup_hook(config)
            File "c:\users\make\appdata\local\temp\pip-install-l52aei08\weditor_8b6041442bdf48fdbe262087342a14fc\.eggs\pbr-5.11.0-py3.10.egg\pbr\hooks\__init__.py", line 25, in setup_hook
              metadata_config.run()
            File "c:\users\make\appdata\local\temp\pip-install-l52aei08\weditor_8b6041442bdf48fdbe262087342a14fc\.eggs\pbr-5.11.0-py3.10.egg\pbr\hooks\base.py", line 27, in run
            File "c:\users\make\appdata\local\temp\pip-install-l52aei08\weditor_8b6041442bdf48fdbe262087342a14fc\.eggs\pbr-5.11.0-py3.10.egg\pbr\hooks\metadata.py", line 25, in hook
              self.config['version'] = packaging.get_version(
            File "c:\users\make\appdata\local\temp\pip-install-l52aei08\weditor_8b6041442bdf48fdbe262087342a14fc\.eggs\pbr-5.11.0-py3.10.egg\pbr\packaging.py", line 862, in get_version
              version = _get_version_from_pkg_metadata(package_name)
            File "c:\users\make\appdata\local\temp\pip-install-l52aei08\weditor_8b6041442bdf48fdbe262087342a14fc\.eggs\pbr-5.11.0-py3.10.egg\pbr\packaging.py", line 830, in _get_version_from_pkg_metadata
              pkg_metadata = email.message_from_file(pkg_metadata_file)
            File "D:\Python\lib\email\__init__.py", line 54, in message_from_file
              return Parser(*args, **kws).parse(fp)
            File "D:\Python\lib\email\parser.py", line 53, in parse
          UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 829: illegal multibyte sequence
          error in setup command: Error parsing C:\Users\make\AppData\Local\Temp\pip-install-l52aei08\weditor_8b6041442bdf48fdbe262087342a14fc\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 829: illegal mu
    ltibyte sequence
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed
    
    × Encountered error while generating package metadata.
    ╰─> See above for output.
    
    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.
    PS E:\joinkwang\Documents\appium_Ui> pip install setuptools==50.3.2
    Collecting setuptools==50.3.2
      Downloading setuptools-50.3.2-py3-none-any.whl (785 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 785.2/785.2 kB 670.4 kB/s eta 0:00:00
    Installing collected packages: setuptools
      Attempting uninstall: setuptools
        Found existing installation: setuptools 45.2.0
        Uninstalling setuptools-45.2.0:
          Successfully uninstalled setuptools-45.2.0
    Successfully installed setuptools-50.3.2
    PS E:\joinkwang\Documents\appium_Ui> pip install weditor           
    Collecting weditor
      Using cached weditor-0.6.7.tar.gz (2.2 MB)
      Preparing metadata (setup.py) ... error
      error: subprocess-exited-with-error
    
      × python setup.py egg_info did not run successfully.
      │ exit code: 1
      ╰─> [23 lines of output]
          WARNING: The wheel package is not available.
          ERROR:root:Error parsing
          Traceback (most recent call last):
            File "c:\users\make\appdata\local\temp\pip-install-y0_5e8xo\weditor_78821a72f286484ba285e458dfd2bb7c\.eggs\pbr-5.11.0-py3.10.egg\pbr\core.py", line 111, in pbr
              attrs = util.cfg_to_args(path, dist.script_args)
            File "c:\users\make\appdata\local\temp\pip-install-y0_5e8xo\weditor_78821a72f286484ba285e458dfd2bb7c\.eggs\pbr-5.11.0-py3.10.egg\pbr\util.py", line 272, in cfg_to_args
              pbr.hooks.setup_hook(config)
            File "c:\users\make\appdata\local\temp\pip-install-y0_5e8xo\weditor_78821a72f286484ba285e458dfd2bb7c\.eggs\pbr-5.11.0-py3.10.egg\pbr\hooks\__init__.py", line 25, in setup_hook
              metadata_config.run()
            File "c:\users\make\appdata\local\temp\pip-install-y0_5e8xo\weditor_78821a72f286484ba285e458dfd2bb7c\.eggs\pbr-5.11.0-py3.10.egg\pbr\hooks\base.py", line 27, in run
            File "c:\users\make\appdata\local\temp\pip-install-y0_5e8xo\weditor_78821a72f286484ba285e458dfd2bb7c\.eggs\pbr-5.11.0-py3.10.egg\pbr\hooks\metadata.py", line 25, in hook
              self.config['version'] = packaging.get_version(
            File "c:\users\make\appdata\local\temp\pip-install-y0_5e8xo\weditor_78821a72f286484ba285e458dfd2bb7c\.eggs\pbr-5.11.0-py3.10.egg\pbr\packaging.py", line 862, in get_version
              version = _get_version_from_pkg_metadata(package_name)
            File "c:\users\make\appdata\local\temp\pip-install-y0_5e8xo\weditor_78821a72f286484ba285e458dfd2bb7c\.eggs\pbr-5.11.0-py3.10.egg\pbr\packaging.py", line 830, in _get_version_from_pkg_metadata
              pkg_metadata = email.message_from_file(pkg_metadata_file)
            File "D:\Python\lib\email\__init__.py", line 54, in message_from_file
              return Parser(*args, **kws).parse(fp)
            File "D:\Python\lib\email\parser.py", line 53, in parse
              data = fp.read(8192)
          UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 829: illegal multibyte sequence
          error in setup command: Error parsing C:\Users\make\AppData\Local\Temp\pip-install-y0_5e8xo\weditor_78821a72f286484ba285e458dfd2bb7c\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 829: illegal mu
    ltibyte sequence
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed
    
    × Encountered error while generating package metadata.
    ╰─> See above for output.
    
    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94

    解决 webitor 安装不了的办法:改个版本!

    pip install -v weditor==0.6.4 -i https://pypi.douban.com/simple
    
    • 1

    验证:

    PS E:\join\Documents\appium_Ui> weditor --help
    usage: weditor [-h] [-v] [-q] [-p PORT] [-f] [--debug] [--shortcut] [--quit]
    
    options:
      -h, --help            show this help message and exit
      -v, --version         show version (default: False)
      -q, --quiet           quite mode, no open new browser (default: False)
      -p PORT, --port PORT  local listen port for weditor (default: 17310)
      -f, --force-quit      force quit before start (default: False)
      --debug               open debug mode (default: False)
      --shortcut            create shortcut in desktop (default: False)
      --quit                stop weditor (default: False)
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
  • 相关阅读:
    从零开始的C++(十二)
    Spring中Bean的实例化详细流程
    数据库系统原理与应用教程(070)—— MySQL 练习题:操作题 101-109(十四):查询条件练习
    小程序的性能优化
    Mac电脑空间不足怎么办?如何优化系统
    同一个接口时快时慢。一次慢的,三四次是快的。怎么回事?
    03 探究Kubernetes工作机制的奥秘
    基于词嵌入语义异常的跨学科研究内容发现方法
    antd form.setFieldsValue问题总结
    固定资产预算怎么管理的
  • 原文地址:https://blog.csdn.net/m0_51709670/article/details/127814013