老虎妙妙 2022-03-18 22:01 采纳率: 66.7%
浏览 828
已结题

pip install weditor安装出错

安装失败

C:\Users\miaoc>pip3.9 install weditor
Collecting weditor
  Using cached 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
  ╰─> [28 lines of output]
      C:\Users\miaoc\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py:642: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead
        warnings.warn(
      C:\Users\miaoc\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py:642: UserWarning: Usage of dash-separated 'home-page' will not be supported in future versions. Please use the underscore name 'home_page' instead
        warnings.warn(
      C:\Users\miaoc\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py:642: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      ERROR:root:Error parsing
      Traceback (most recent call last):
        File "c:\users\miaoc\appdata\local\temp\pip-install-mapijyhi\weditor_d8549ee936e84df1966d1c621c6030ce\.eggs\pbr-5.8.1-py3.9.egg\pbr\core.py", line 111, in pbr
          attrs = util.cfg_to_args(path, dist.script_args)
        File "c:\users\miaoc\appdata\local\temp\pip-install-mapijyhi\weditor_d8549ee936e84df1966d1c621c6030ce\.eggs\pbr-5.8.1-py3.9.egg\pbr\util.py", line 272, in cfg_to_args
          pbr.hooks.setup_hook(config)
        File "c:\users\miaoc\appdata\local\temp\pip-install-mapijyhi\weditor_d8549ee936e84df1966d1c621c6030ce\.eggs\pbr-5.8.1-py3.9.egg\pbr\hooks\__init__.py", line 25, in setup_hook
          metadata_config.run()
        File "c:\users\miaoc\appdata\local\temp\pip-install-mapijyhi\weditor_d8549ee936e84df1966d1c621c6030ce\.eggs\pbr-5.8.1-py3.9.egg\pbr\hooks\base.py", line 27, in run
          self.hook()
        File "c:\users\miaoc\appdata\local\temp\pip-install-mapijyhi\weditor_d8549ee936e84df1966d1c621c6030ce\.eggs\pbr-5.8.1-py3.9.egg\pbr\hooks\metadata.py", line 25, in hook
          self.config['version'] = packaging.get_version(
        File "c:\users\miaoc\appdata\local\temp\pip-install-mapijyhi\weditor_d8549ee936e84df1966d1c621c6030ce\.eggs\pbr-5.8.1-py3.9.egg\pbr\packaging.py", line 860, in get_version
          version = _get_version_from_pkg_metadata(package_name)
        File "c:\users\miaoc\appdata\local\temp\pip-install-mapijyhi\weditor_d8549ee936e84df1966d1c621c6030ce\.eggs\pbr-5.8.1-py3.9.egg\pbr\packaging.py", line 828, in _get_version_from_pkg_metadata
          pkg_metadata = email.message_from_file(pkg_metadata_file)
        File "C:\Users\miaoc\AppData\Local\Programs\Python\Python39\lib\email\__init__.py", line 54, in message_from_file
          return Parser(*args, **kws).parse(fp)
        File "C:\Users\miaoc\AppData\Local\Programs\Python\Python39\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\miaoc\AppData\Local\Temp\pip-install-mapijyhi\weditor_d8549ee936e84df1966d1c621c6030ce\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 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.

  • 写回答

2条回答 默认 最新

  • qq_50331623 2022-04-18 14:49
    关注

    weditor的0.6.5好像是有问题,安不上,指定成0.6.4就好了。看看行不行,我是这样解决了。

    pip install -v weditor==0.6.4 -i https://pypi.douban.com/simple
    
    
    本回答被专家选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 3月16日
  • 专家已采纳回答 3月8日
  • 创建了问题 3月18日

悬赏问题

  • ¥30 STM32 INMP441无法读取数据
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥500 把面具戴到人脸上,请大家贡献智慧
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
  • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急
  • ¥30 c#打开word开启修订并实时显示批注
  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境