追爱紫翼 2022-03-01 12:39 采纳率: 100%
浏览 1851
已结题

pip install weditor安装出错 一直没办法解决

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting weditor
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/04/9b/ec6c2b8ab08fecd21d98121e2b91244632d1836669bb9c917ff01406bd1a/wedito
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.
报错内容 更新了pip 也无法解决 帮忙解决一下!!

  • 写回答

3条回答 默认 最新

  • heianduck 2022-03-01 15:53
    关注
    git clone https://github.com/openatx/weditor
    pip3 install -e weditor
    

    这个行吗?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 3月9日
  • 已采纳回答 3月1日
  • 创建了问题 3月1日

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题