当前位置:   article > 正文

pip install -U weditor 安装报错 error: subprocess-exited-with-error_getting requirements to build wheel ... error erro

getting requirements to build wheel ... error error: subprocess-exited-with-

  1. Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
  2. Collecting weditor
  3. Using cached https://mirrors.aliyun.com/pypi/packages/b9/d0/b5f61b264b2448623d308ca40bf3f369cd98842815fb6b462676a10c30ba/weditor-0.6.8.tar.gz (2.2 MB)
  4. Installing build dependencies ... done
  5. Getting requirements to build wheel ... done
  6. Installing backend dependencies ... done
  7. Preparing metadata (pyproject.toml) ... error
  8. error: subprocess-exited-with-error
  9. × Preparing metadata (pyproject.toml) did not run successfully.
  10. exit code: 1
  11. ╰─> [22 lines of output]
  12. Error parsing
  13. Traceback (most recent call last):
  14. File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\normal\Lib\site-packages\pbr\core.py", line 105, in pbr
  15. attrs = util.cfg_to_args(path, dist.script_args)
  16. 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
  17. pbr.hooks.setup_hook(config)
  18. 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
  19. metadata_config.run()
  20. File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\normal\Lib\site-packages\pbr\hooks\base.py", line 27, in run
  21. self.hook()
  22. File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\normal\Lib\site-packages\pbr\hooks\metadata.py", line 26, in hook
  23. self.config['name'], self.config.get('version', None))
  24. File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-93wah2j7\normal\Lib\site-packages\pbr\packaging.py", line 862, in get_version
  25. version = _get_version_from_pkg_metadata(package_name)
  26. 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
  27. pkg_metadata = email.message_from_file(pkg_metadata_file)
  28. File "d:\app\python\python3.7\lib\email\__init__.py", line 54, in message_from_file
  29. return Parser(*args, **kws).parse(fp)
  30. File "d:\app\python\python3.7\lib\email\parser.py", line 54, in parse
  31. data = fp.read(8192)
  32. UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 645: illegal multibyte sequence
  33. 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
  34. [end of output]
  35. note: This error originates from a subprocess, and is likely not a problem with pip.
  36. error: metadata-generation-failed
  37. × Encountered error while generating package metadata.
  38. ╰─> See above for output.
  39. note: This is an issue with the package mentioned above, not pip.
  40. hint: See above for details.

解决方案降低版本

pip install weditor==0.6.4

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/47239?site
推荐阅读
相关标签
  

闽ICP备14008679号