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.
解决 webitor 安装不了的办法:改个版本!
pip install -v weditor==0.6.4 -i https://pypi.douban.com/simple
验证:
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)