pip install weditor -i https://pypi.douban.com/simple/ 出错了

来源:3-4 weditor工具介绍和常见问题-1

寒羽1846814

2022-03-12

这是出错信息: Preparing metadata (setup.py) … error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
ERROR:root:Error parsing
Traceback (most recent call last):
File “c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.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\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.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\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.eggs\pbr-5.8
.1-py3.7.egg\pbr\hooks_init_.py”, line 25, in setup_hook
metadata_config.run()
File “c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.eggs\pbr-5.8
.1-py3.7.egg\pbr\hooks\base.py”, line 27, in run
self.hook()
File “c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.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\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.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\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.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 "C:\python\xb0\xb2װ·\xbe\xa2\lib\email_init
.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File “C:\python\xb0\xb2װ·\xbe\xa2\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\ani\AppData\Local\Temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f
9bced3c9bf8174c3\setup.cfg: UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xad in position 825: illegal multibyte seq
uence
[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.
翻译后:正在准备元数据(setup.py)。。。错误

错误:子进程已退出,但出现错误

×python设置。py egg_info未成功运行。

│ 退出代码:1

╰─> [22行输出]

错误:root:解析错误

回溯(最近一次通话最后一次):

文件“c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.eggs\pbr-5.8

.1-py3。7.鸡蛋\pbr\core。py”,第111行,pbr中

attrs=util。cfg_到_参数(路径,dist.script_参数)

文件“c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.eggs\pbr-5.8

.1-py3。7.egg\pbr\util。py”,第272行,在cfg_至_参数中

pbr。钩子。设置钩(配置)

文件“c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.eggs\pbr-5.8

.1-py3。7.鸡蛋\pbr\hooks\初始。py”,第25行,在安装钩中

元数据配置。跑()

文件“c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.eggs\pbr-5.8

.1-py3。7.鸡蛋\pbr\hooks\base。py“,第27行,在运行中

自己胡克()

文件“c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.eggs\pbr-5.8

.1-py3。7.egg\pbr\hooks\metadata。py”,第26行,在钩子里

自己配置[‘name’],self。配置。获取(‘版本’,无))

文件“c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.eggs\pbr-5.8

.1-py3。7.鸡蛋\pbr\包装。py”,第860行,在get_版本中

version=从_pkg_元数据(包名称)获取_version

文件“c:\users\ani\appdata\local\temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f9bced3c9bf8174c3.eggs\pbr-5.8

.1-py3。7.鸡蛋\pbr\包装。py”,第828行,来自“打包”元数据的“获取”版本

pkg_元数据=电子邮件。来自_文件的消息(pkg_元数据_文件)

文件“C:\python\xb0\xb2װ·\xbe\xa2\lib\email__init__uuuuuuuuu.py”,第54行,在来自_文件的消息中

返回解析器(*args,**kws)。解析(fp)

文件“C:\python\xb0\xb2װ·\xbe\xa2\lib\email\parser.py”,第53行,在parse中

数据=fp。阅读(8192)

UnicodeDecodeError:“gbk”编解码器无法解码位置825处的字节0xad:非法的多字节序列

setup命令出错:分析C:\Users\ani\AppData\Local\Temp\pip-install-u4u2lvvn\weditor_6b17893ed51a454f时出错

9bced3c9bf8174c3\设置。cfg:UnicodeDecodeError:“gbk”编解码器无法解码825位的字节0xad:非法的多字节序列

影响

[输出结束]

注意:此错误源于子进程,可能不是pip的问题。

错误:元数据生成失败

×在生成包元数据时遇到错误。

╰─> 输出见上文。

写回答

2回答

慕勒5311868

2023-04-11

我用的下面这句解决了,pip install weditor -i https://pypi.douban.com/simple --no-warn-script-location。

0
0

只是为了好玩

2023-02-22

0.6.5的版本有问题,设置版本为0.6.4解决问题。 pip install --pre --upgrade weditor==0.6.4

0
0

移动端Python爬虫实战 数据抓取+数据可视化

从App数据抓取到数据可视化,全流程讲解

1831 学习 · 1003 问题

查看课程