小曲奇200 2023-04-02 16:23 采纳率: 50%
浏览 28
已结题

pip安装manimlib一直报错,如何解决?

pip安装manimlib结果报错:

C:\Users\tbwyyds>pip install manimlib -i https://pypi.tuna.tsinghua.edu.cn/simple/
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
Collecting manimlib
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b2/e1/dbc03fab72f236c0c47e1ecb5d37348584c8463ae3a444c2e1a8504dac4f/manimlib-0.2.0.tar.gz (4.8 MB)
  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\tbwyyds\appdata\local\temp\pip-install-9us4hfe_\manimlib_e4f0d2c5010949ad9fa2f60926311eb9\.eggs\pbr-5.11.1-py3.8.egg\pbr\core.py", line 105, in pbr
          attrs = util.cfg_to_args(path, dist.script_args)
        File "c:\users\tbwyyds\appdata\local\temp\pip-install-9us4hfe_\manimlib_e4f0d2c5010949ad9fa2f60926311eb9\.eggs\pbr-5.11.1-py3.8.egg\pbr\util.py", line 272, in cfg_to_args
          pbr.hooks.setup_hook(config)
        File "c:\users\tbwyyds\appdata\local\temp\pip-install-9us4hfe_\manimlib_e4f0d2c5010949ad9fa2f60926311eb9\.eggs\pbr-5.11.1-py3.8.egg\pbr\hooks\__init__.py", line 25, in setup_hook
          metadata_config.run()
        File "c:\users\tbwyyds\appdata\local\temp\pip-install-9us4hfe_\manimlib_e4f0d2c5010949ad9fa2f60926311eb9\.eggs\pbr-5.11.1-py3.8.egg\pbr\hooks\base.py", line 27, in run
          self.hook()
        File "c:\users\tbwyyds\appdata\local\temp\pip-install-9us4hfe_\manimlib_e4f0d2c5010949ad9fa2f60926311eb9\.eggs\pbr-5.11.1-py3.8.egg\pbr\hooks\metadata.py", line 25, in hook
          self.config['version'] = packaging.get_version(
        File "c:\users\tbwyyds\appdata\local\temp\pip-install-9us4hfe_\manimlib_e4f0d2c5010949ad9fa2f60926311eb9\.eggs\pbr-5.11.1-py3.8.egg\pbr\packaging.py", line 862, in get_version
          version = _get_version_from_pkg_metadata(package_name)
        File "c:\users\tbwyyds\appdata\local\temp\pip-install-9us4hfe_\manimlib_e4f0d2c5010949ad9fa2f60926311eb9\.eggs\pbr-5.11.1-py3.8.egg\pbr\packaging.py", line 830, in _get_version_from_pkg_metadata
          pkg_metadata = email.message_from_file(pkg_metadata_file)
        File "c:\users\tbwyyds\appdata\local\programs\python\python38-32\lib\email\__init__.py", line 54, in message_from_file
          return Parser(*args, **kws).parse(fp)
        File "c:\users\tbwyyds\appdata\local\programs\python\python38-32\lib\email\parser.py", line 53, in parse
          data = fp.read(8192)
      UnicodeDecodeError: 'gbk' codec can't decode byte 0x91 in position 2877: illegal multibyte sequence
      error in setup command: Error parsing C:\Users\tbwyyds\AppData\Local\Temp\pip-install-9us4hfe_\manimlib_e4f0d2c5010949ad9fa2f60926311eb9\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0x91 in position 2877: 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条回答 默认 最新

  • 不吃西红柿丶 Python领域优质创作者 2023-04-02 17:05
    关注

    类型不兼容: 'gbk' codec can't decode

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

报告相同问题?

问题事件

  • 系统已结题 4月12日
  • 已采纳回答 4月4日
  • 创建了问题 4月2日

悬赏问题

  • ¥15 如果要做一个老年人平板有哪些需求
  • ¥15 k8s生产配置推荐配置及部署方案
  • ¥15 matlab提取运动物体的坐标
  • ¥15 人大金仓下载,有人知道怎么解决吗
  • ¥15 一个小问题,本人刚入门,哪位可以help
  • ¥15 python安卓开发
  • ¥15 使用R语言GD包一直不出结果
  • ¥15 计算机微处理器与接口技术相关问题,求解答图片的这个问题,有多少个端口,端口地址和解答问题的方法和思路,不要AI作答
  • ¥15 如何根据一个截图编写对应的HTML代码
  • ¥15 stm32标准库的PID角度环