Script file 'D:\Anaconda\Scripts\pip-script.py' is not present. Traceback (most recent call last): File "D:\yolov7-lpr\yolov7_plate-master\utils\general.py", line 117, in check_requirements pkg.require(r) File "D:\Anaconda\lib\site-packages\pkg_resources\__init__.py", line 886, in require needed = self.resolve(parse_requirements(requirements)) File "D:\Anaconda\lib\site-packages\pkg_resources\__init__.py", line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'onnx>=1.8.1' distribution was not found and is required by the application During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:/yolov7-lpr/yolov7_plate-master/detect.py", line 196, in <module> check_requirements(exclude=('tensorboard', 'pycocotools', 'thop')) File "D:\yolov7-lpr\yolov7_plate-master\utils\general.py", line 121, in check_requirements print(subprocess.check_output(f"pip install '{r}'", shell=True).decode()) File "D:\Anaconda\lib\subprocess.py", line 415, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "D:\Anaconda\lib\subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'pip install 'onnx>=1.8.1'' returned non-zero exit status 105.
时间: 2023-06-27 13:04:42 浏览: 209
Anaconda3-2023.09-0-MacOSX-x86-64.pkg
看起来你在运行代码时缺少了 `onnx` 库。根据错误信息显示,你需要安装 `onnx>=1.8.1` 才能成功运行代码。你可以尝试在命令行中运行以下命令来安装 `onnx` 库:
```
pip install onnx>=1.8.1
```
如果你使用的是 Anaconda 环境,可以尝试在 Anaconda Prompt 中运行以上命令来安装 `onnx` 库。
阅读全文