在运行模型python脚本时报错如下内容:
Traceback (most recent call last):
File "tools/onnx_custom.py", line 7, in
from paddle2onnx.command import program2onnx
File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/paddle2onnx/__init__.py", line 16, in
from . import command
File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/paddle2onnx/command.py", line 16, in
from six import text_type as _text_type
ModuleNotFoundError: No module named 'six'
操作办法
python3 -m pip install six --trusted-host pypi.tuna.tsinghua.edu.cn -i https://pypi.tuna.tsinghua.edu.cn/simple