我是靠谱客的博主 合适摩托,最近开发中收集的这篇文章主要介绍error: subprocess-exited-with-error完美解决Weditor安装不了问题,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
安装 webitor 报错:
- error: subprocess-exited-with-error
- error: metadata-generation-failed
PS E:joinkwangDocumentsappium_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:usersmakeappdatalocaltemppip-install-l52aei08weditor_8b6041442bdf48fdbe262087342a14fc.eggspbr-5.11.0-py3.10.eggpbrcore.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "c:usersmakeappdatalocaltemppip-install-l52aei08weditor_8b6041442bdf48fdbe262087342a14fc.eggspbr-5.11.0-py3.10.eggpbrutil.py", line 272, in cfg_to_args
pbr.hooks.setup_hook(config)
File "c:usersmakeappdatalocaltemppip-install-l52aei08weditor_8b6041442bdf48fdbe262087342a14fc.eggspbr-5.11.0-py3.10.eggpbrhooks__init__.py", line 25, in setup_hook
metadata_config.run()
File "c:usersmakeappdatalocaltemppip-install-l52aei08weditor_8b6041442bdf48fdbe262087342a14fc.eggspbr-5.11.0-py3.10.eggpbrhooksbase.py", line 27, in run
File "c:usersmakeappdatalocaltemppip-install-l52aei08weditor_8b6041442bdf48fdbe262087342a14fc.eggspbr-5.11.0-py3.10.eggpbrhooksmetadata.py", line 25, in hook
self.config['version'] = packaging.get_version(
File "c:usersmakeappdatalocaltemppip-install-l52aei08weditor_8b6041442bdf48fdbe262087342a14fc.eggspbr-5.11.0-py3.10.eggpbrpackaging.py", line 862, in get_version
version = _get_version_from_pkg_metadata(package_name)
File "c:usersmakeappdatalocaltemppip-install-l52aei08weditor_8b6041442bdf48fdbe262087342a14fc.eggspbr-5.11.0-py3.10.eggpbrpackaging.py", line 830, in _get_version_from_pkg_metadata
pkg_metadata = email.message_from_file(pkg_metadata_file)
File "D:Pythonlibemail__init__.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File "D:Pythonlibemailparser.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:UsersmakeAppDataLocalTemppip-install-l52aei08weditor_8b6041442bdf48fdbe262087342a14fcsetup.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:joinkwangDocumentsappium_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:joinkwangDocumentsappium_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:usersmakeappdatalocaltemppip-install-y0_5e8xoweditor_78821a72f286484ba285e458dfd2bb7c.eggspbr-5.11.0-py3.10.eggpbrcore.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "c:usersmakeappdatalocaltemppip-install-y0_5e8xoweditor_78821a72f286484ba285e458dfd2bb7c.eggspbr-5.11.0-py3.10.eggpbrutil.py", line 272, in cfg_to_args
pbr.hooks.setup_hook(config)
File "c:usersmakeappdatalocaltemppip-install-y0_5e8xoweditor_78821a72f286484ba285e458dfd2bb7c.eggspbr-5.11.0-py3.10.eggpbrhooks__init__.py", line 25, in setup_hook
metadata_config.run()
File "c:usersmakeappdatalocaltemppip-install-y0_5e8xoweditor_78821a72f286484ba285e458dfd2bb7c.eggspbr-5.11.0-py3.10.eggpbrhooksbase.py", line 27, in run
File "c:usersmakeappdatalocaltemppip-install-y0_5e8xoweditor_78821a72f286484ba285e458dfd2bb7c.eggspbr-5.11.0-py3.10.eggpbrhooksmetadata.py", line 25, in hook
self.config['version'] = packaging.get_version(
File "c:usersmakeappdatalocaltemppip-install-y0_5e8xoweditor_78821a72f286484ba285e458dfd2bb7c.eggspbr-5.11.0-py3.10.eggpbrpackaging.py", line 862, in get_version
version = _get_version_from_pkg_metadata(package_name)
File "c:usersmakeappdatalocaltemppip-install-y0_5e8xoweditor_78821a72f286484ba285e458dfd2bb7c.eggspbr-5.11.0-py3.10.eggpbrpackaging.py", line 830, in _get_version_from_pkg_metadata
pkg_metadata = email.message_from_file(pkg_metadata_file)
File "D:Pythonlibemail__init__.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File "D:Pythonlibemailparser.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:UsersmakeAppDataLocalTemppip-install-y0_5e8xoweditor_78821a72f286484ba285e458dfd2bb7csetup.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.
解决 webitor 安装不了的办法:改个版本!
pip install -v weditor==0.6.4 -i https://pypi.douban.com/simple
验证:
PS E:joinDocumentsappium_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)
最后
以上就是合适摩托为你收集整理的error: subprocess-exited-with-error完美解决Weditor安装不了问题的全部内容,希望文章能够帮你解决error: subprocess-exited-with-error完美解决Weditor安装不了问题所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复