python 安装第三方库 weditor 报错

问题遇到的现象和发生背景

安装第三方库 weditor

问题相关代码,请勿粘贴截图

pip install weditor -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

运行结果及报错内容

(venv) F:\python>pip install weditor -i https://pypi.tuna.tsinghua.edu.cn/simple/
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
Collecting weditor
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/04/9b/ec6c2b8ab08fecd21d98121e2b91244632d1836669bb9c917ff01406bd1a/weditor-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
╰─> [23 lines of output]
WARNING: The wheel package is not available.
ERROR:root:Error parsing
Traceback (most recent call last):
File "c:\users\admini1\appdata\local\temp\pip-install-wdiooulz\weditor_2cd28fb59d82407f999675ee716d541f.eggs\pbr-5.8.1-py3.7.egg\pbr\core.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "c:\users\admini
1\appdata\local\temp\pip-install-wdiooulz\weditor_2cd28fb59d82407f999675ee716d541f.eggs\pbr-5.8.1-py3.7.egg\pbr\util.py", line 272, in cfg_to_args
pbr.hooks.setup_hook(config)
File "c:\users\admini1\appdata\local\temp\pip-install-wdiooulz\weditor_2cd28fb59d82407f999675ee716d541f.eggs\pbr-5.8.1-py3.7.egg\pbr\hooks_init_.py", line 25, in setup_hook
metadata_config.run()
File "c:\users\admini
1\appdata\local\temp\pip-install-wdiooulz\weditor_2cd28fb59d82407f999675ee716d541f.eggs\pbr-5.8.1-py3.7.egg\pbr\hooks\base.py", line 27, in run
self.hook()
File "c:\users\admini1\appdata\local\temp\pip-install-wdiooulz\weditor_2cd28fb59d82407f999675ee716d541f.eggs\pbr-5.8.1-py3.7.egg\pbr\hooks\metadata.py", line 26, in hook
self.config['name'], self.config.get('version', None))
File "c:\users\admini
1\appdata\local\temp\pip-install-wdiooulz\weditor_2cd28fb59d82407f999675ee716d541f.eggs\pbr-5.8.1-py3.7.egg\pbr\packaging.py", line 860, in get_version
version = _get_version_from_pkg_metadata(package_name)
File "c:\users\admini1\appdata\local\temp\pip-install-wdiooulz\weditor_2cd28fb59d82407f999675ee716d541f.eggs\pbr-5.8.1-py3.7.egg\pbr\packaging.py", line 828, in get_version_from_pkg_metadata
pkg_metadata = email.message_from_file(pkg_metadata_file)
File "F:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\email_init
.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File "F:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\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\ADMINI
1\AppData\Local\Temp\pip-install-wdiooulz\weditor_2cd28fb59d82407f999675ee716d541f\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in p
osition 825: 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.

我的解答思路和尝试过的方法

能下载成功,好像就是安装不了,安装其它库没有问题,试过很多办法,直接下载库手动安装也没用

我想要达到的结果

怎么才能安装成功

降低版本
pip install --pre -U weditor==0.6.4 -i https://pypi.tuna.tsinghua.edu.cn/simple

请问解决了吗?我也是一样的问题

解决了,是这个模块的版本有问题,换个版本就好了

两个命令,亲测有用:
git clone https://github.com/openatx/weditor
pip3 install -e weditor

pip升级之后再安装,还是不行的话降低python版本