报错信息:
Looking in indexes: https:
Collecting weditor
Using cachedhttps:
r-0.6.5.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
╰─> [34 lines of output]
WARNING: Ignoring invalid distribution -pencv-python (c:\users\administrator.desktop-3488grn\appdata\roaming\python\python38
site-packages)
WARNING: Ignoring invalid distribution -ip (e:\ziyuanbao\lib\site-packages)
E:\ziyuanbao\lib\site-packages\setuptools\dist.py:738: UserWarning: Usage of dash-separated 'author-email' will not be suppor
ted in future versions. Please use the underscore name 'author_email' instead
warnings.warn(
E:\ziyuanbao\lib\site-packages\setuptools\dist.py:738: UserWarning: Usage of dash-separated 'home-page' will not be supported
in future versions. Please use the underscore name 'home_page' instead
warnings.warn(
E:\ziyuanbao\lib\site-packages\setuptools\dist.py:738: UserWarning: Usage of dash-separated 'description-file' will not be su
pported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
E:\ziyuanbao\lib\site-packages\pkg_resources_init.py:122: PkgResourcesDeprecationWarning: 4.0.0-unsupported is an invalid
version and will not be supported in a future release
warnings.warn(
E:\ziyuanbao\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Error parsing
Traceback (most recent call last):
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\core.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\util.py", line 272, in cfg_to_args
pbr.hooks.setup_hook(config)
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\hooks_init.py", line 25, in setup_hook
metadata_config.run()
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\hooks\base.py", line 27, in run
self.hook()
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\hooks\metadata.py", line 25, in hook
self.config['version'] = packaging.get_version(
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\packaging.py", line 860, in get_version
version =get_version_from_pkg_metadata(package_name)
File "c:\users\administrator.desktop-3488grn\appdata\local\temp\pip-install-c_1owwyj\weditor_c837051f5af04a9893def95fbce5da
7e.eggs\pbr-5.8.1-py3.8.egg\pbr\packaging.py", line 828, in get_version_from_pkg_metadata
pkg_metadata = email.message_from_file(pkg_metadata_file)
File "E:\ziyuanbao\lib\email_init.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File "E:\ziyuanbao\lib\email\parser.py", line 53, in parse
data = fp.read(8192)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 825: illegal multibyte sequence
error in setup command: Error parsing C:\Users\Administrator.DESKTOP-3488GRN\AppData\Local\Temp\pip-install-c_1owwyj\weditor
c837051f5af04a9893def95fbce5da7e\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 825: illegal multiby
te 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.
解决方法:
git clone https:
pip3 install -e weditor
|