xhy123kaibai 2023-02-18 21:35 采纳率: 50%
浏览 28

这个很简单,看看怎么解决

这个怎么解决,一堆红线

img


我尝试安装其中一个

(paddle_ku) F:\Learning\study\tanchishe>pip install benchmark
Collecting benchmark
  Downloading benchmark-0.1.5.tar.gz (7.1 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 36, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\谢涵宇\AppData\Local\Temp\pip-install-ts01z_vb\benchmark_cc3b8e7a52a44fe38bf7d66ee24a9e1c\setup.py", line 3, in <module>
          from benchmark import __VERSION__
        File "C:\Users\谢涵宇\AppData\Local\Temp\pip-install-ts01z_vb\benchmark_cc3b8e7a52a44fe38bf7d66ee24a9e1c\benchmark\__init__.py", line 10, in <module>
          from main import BenchmarkProgram, main
      ModuleNotFoundError: No module named 'main'
      [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.



结果失败

  • 写回答

1条回答 默认 最新

  • BsonJ 2023-07-27 22:08
    关注

    编程常识:路径不能有中文。先把路径问题解决了吧

    评论

报告相同问题?

问题事件

  • 创建了问题 2月18日