运行yolov5时报错
python3.6.1
pip从20.几
后来pip回退到9.0.3
各种库已经按好的
应该不是pip版本的问题,跑其他代码可以跑
跑yolo不行
就是想问问有没有一样问题的,给个思路
补一下
没往里写过代码,只是想让框架跑一下能跑通,就出问题了
运行yolov5时报错
python3.6.1
pip从20.几
后来pip回退到9.0.3
各种库已经按好的
应该不是pip版本的问题,跑其他代码可以跑
跑yolo不行
就是想问问有没有一样问题的,给个思路
补一下
没往里写过代码,只是想让框架跑一下能跑通,就出问题了
在测试代码中报错的根本原因在于typing.NoReturn是在python3.6.2版本中添加的,你运行的版本低了。如想跑通代码,需要升级你的python到>3.6.2。至于pip版本不要使用过低的版本,否则安装第三方包偶尔会有问题。
相关问题讨论见:
ImportError: cannot import name 'NoReturn' · Issue #1666 · psf/black · GitHub
Describe the bug A clear and concise description of what the bug is. Running black in the console generates a traceback. To Reproduce Steps to reproduce the behavior: Running black directly in the console gives me the following traceback...
https://github.com/psf/black/issues/1666
如有帮助,望点击采纳。