当前位置:   article > 正文

error: subprocess-exited-with-error完美解决Weditor安装不了问题_collecting weditor using cached weditor-0.7.2.tar.

collecting weditor using cached weditor-0.7.2.tar.gz (2.2 mb) preparing meta

安装 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
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号