pip install -U weditor 安装报错 error: subprocess-exited-with-error
  o2LNcKJLLhr1 2023年11月13日 16 0
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting weditor
  Using cached https://mirrors.aliyun.com/pypi/packages/b9/d0/b5f61b264b2448623d308ca40bf3f369cd98842815fb6b462676a10c30ba/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\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\normal\Lib\site-packages\pbr\core.py", line 105, in pbr
          attrs = util.cfg_to_args(path, dist.script_args)
        File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\normal\Lib\site-packages\pbr\util.py", line 272, in cfg_to_args
          pbr.hooks.setup_hook(config)
        File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\normal\Lib\site-packages\pbr\hooks\__init__.py", line 25, in setup_hook
          metadata_config.run()
        File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\normal\Lib\site-packages\pbr\hooks\base.py", line 27, in run
          self.hook()
        File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\normal\Lib\site-packages\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-build-env-93wah2j7\normal\Lib\site-packages\pbr\packaging.py", line 862, in get_version
          version = _get_version_from_pkg_metadata(package_name)
        File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\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 "d:\app\python\python3.7\lib\email\__init__.py", line 54, in message_from_file
          return Parser(*args, **kws).parse(fp)
        File "d:\app\python\python3.7\lib\email\parser.py", line 54, 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\ADMINI~1\AppData\Local\Temp\pip-install-4vdwncni\weditor_56cf3dca51f642a4a2f1180796e78f8e\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.

解决方案降低版本

pip install weditor==0.6.4
【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月13日 0

暂无评论

推荐阅读
o2LNcKJLLhr1