Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

安装报错 #134

Open
fatonnsmahr opened this issue May 14, 2023 · 2 comments
Open

安装报错 #134

fatonnsmahr opened this issue May 14, 2023 · 2 comments

Comments

@fatonnsmahr
Copy link

Collecting weditor
Using cached weditor-0.6.8.tar.gz (2.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
Error parsing
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-5psw8ktl\normal\Lib\site-packages\pbr\core.py", line 105, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-5psw8ktl\normal\Lib\site-packages\pbr\util.py", line 272, in cfg_to_args
pbr.hooks.setup_hook(config)
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-5psw8ktl\normal\Lib\site-packages\pbr\hooks_init_.py", line 25, in setup_hook
metadata_config.run()
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-5psw8ktl\normal\Lib\site-packages\pbr\hooks\base.py", line 27, in run
self.hook()
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-5psw8ktl\normal\Lib\site-packages\pbr\hooks\metadata.py", line 25, in hook
self.config['version'] = packaging.get_version(
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-5psw8ktl\normal\Lib\site-packages\pbr\packaging.py", line 862, in get_version
version = _get_version_from_pkg_metadata(package_name)
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-5psw8ktl\normal\Lib\site-packages\pbr\packaging.py", line 830, in get_version_from_pkg_metadata
pkg_metadata = email.message_from_file(pkg_metadata_file)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\email_init
.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\email\parser.py", line 53, in parse
data = fp.read(8192)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 645: illegal multibyte sequence
error in setup command: Error parsing C:\Users\Administrator\AppData\Local\Temp\pip-install-r8cipwh2\weditor_bcaaaebe605041409c3da3018f948ae4\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 645: illegal multibyte 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.

@LeanFly
Copy link

LeanFly commented May 29, 2023

克隆代码到本地,用管理员权限打开终端,进入到代码目录,执行 安装:python setup.py install

1 similar comment
@LeanFly
Copy link

LeanFly commented May 29, 2023

克隆代码到本地,用管理员权限打开终端,进入到代码目录,执行 安装:python setup.py install

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants